mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 12:45:55 +00:00
Ability for enemies to shoot when controlled
This commit is contained in:
parent
dfd9abe91b
commit
2d6bcc5f00
10 changed files with 93 additions and 34 deletions
|
|
@ -11,9 +11,7 @@ public partial class KeyboardInputProvider : InputProvider
|
|||
|
||||
public override Vector2 GetAimInput()
|
||||
{
|
||||
var rightStickInput = GetRightStickInput();
|
||||
|
||||
return GetRightStickInput();
|
||||
return GetRightStickInput();
|
||||
}
|
||||
|
||||
private Vector2 GetRightStickInput()
|
||||
|
|
@ -24,8 +22,13 @@ public partial class KeyboardInputProvider : InputProvider
|
|||
);
|
||||
}
|
||||
|
||||
public override bool GetStrafing()
|
||||
public override bool GetActionJustPressed(string action)
|
||||
{
|
||||
return Input.IsActionPressed("strafe");
|
||||
return Input.IsActionJustPressed(action);
|
||||
}
|
||||
|
||||
public override bool GetActionPressed(string action)
|
||||
{
|
||||
return Input.IsActionPressed(action);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue