пінгвін ходіт

This commit is contained in:
MrTorex committed 2026-01-31 00:02:35 +03:00
1 parent 158850aa45
commit 0090d6d774
10 files changed
+545 -13

No files matched your search

+3
View File
@@ -12,6 +12,9 @@ namespace Code.Input
Vector2 MainMenuParalax { get; }
float MoveInput { get; }
bool JumpPressed { get; }
bool SprintHeld { get; }
bool AttackPressed { get; }
void DebugBindAction(int mapId, int actionId, Action<InputAction.CallbackContext> action);
+6
View File
@@ -11,6 +11,9 @@ namespace Code.Input
public Vector2 MainMenuParalax { get; private set; }
public float MoveInput { get; private set; }
public bool JumpPressed { get; private set; }
public bool SprintHeld { get; private set; }
public bool AttackPressed { get; private set; }
public InputService(InputActionAsset inputActionAsset)
{
@@ -28,6 +31,9 @@ namespace Code.Input
{
var map = _inputActionAsset.actionMaps[(int)ActionMapping.Gameplay];
BindAxis(map, "Move", v => MoveInput = v);
BindButton(map, "Jump", v => JumpPressed = v);
BindButton(map, "Sprint", v => SprintHeld = v);
BindButton(map, "Attack", v => AttackPressed = v);
}
private void SetupMainMenuInputCallbacks()