Started working on turrets

This commit is contained in:
2026-01-13 17:33:30 +00:00
parent 44ef19d058
commit 6f31012cd8
93 changed files with 72145 additions and 7 deletions

View File

@@ -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)
{