Started working on turrets
This commit is contained in:
@@ -13,6 +13,7 @@ namespace StarterAssets
|
||||
public bool jump;
|
||||
public bool sprint;
|
||||
public bool shoot;
|
||||
public bool interact;
|
||||
|
||||
[Header("Movement Settings")]
|
||||
public bool analogMovement;
|
||||
@@ -48,6 +49,10 @@ namespace StarterAssets
|
||||
{
|
||||
ShootInput(value.isPressed);
|
||||
}
|
||||
public void OnInteract(InputValue value)
|
||||
{
|
||||
InteractInput(value.isPressed);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -74,6 +79,10 @@ namespace StarterAssets
|
||||
{
|
||||
shoot = newShootState;
|
||||
}
|
||||
public void InteractInput(bool newInteractState)
|
||||
{
|
||||
interact = newInteractState;
|
||||
}
|
||||
|
||||
private void OnApplicationFocus(bool hasFocus)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user