android build

This commit is contained in:
Vova
2024-01-08 08:42:36 +02:00
parent 6ac52e1665
commit 029bb4a7d8
48 changed files with 6435 additions and 26 deletions
+8 -3
View File
@@ -88,15 +88,20 @@ public class Player : Character
_isHoldingHammer = true;
}
if (Input.GetKeyDown(KeyCode.Space) && !_isFalling)
if (FireButtonPressed() && !_isFalling)
{
if (_hammer == null)
{
_animator.SetTrigger("Body_ThrowHammer");
}
}
var move=_inputActions.Player.Movement.ReadValue<Vector2>();
base.MoveTo(move.x, isAllowVertical? move.y:0);
var move = _inputActions.Player.Movement.ReadValue<Vector2>();
base.MoveTo(move.x, isAllowVertical ? move.y : 0);
}
private bool FireButtonPressed()
{
return _inputActions.Player.Fire.triggered && _inputActions.Player.Fire.ReadValue<float>() > 0;
}
public void ThrowHammerObject()