mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 14:35:53 +00:00
Manual Reload
This commit is contained in:
parent
9a5267b3e9
commit
3b19e2b76f
10 changed files with 92 additions and 6 deletions
|
|
@ -197,6 +197,12 @@ public partial class Active : PlayerStateBase
|
|||
|
||||
private void HandleShoot()
|
||||
{
|
||||
if (_inputProvider.GetReloadJustPressed())
|
||||
{
|
||||
_weaponProvider.Reload();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_inputProvider.GetShootPressed()) return;
|
||||
_weaponProvider.Shoot(this.FacingDirection);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue