Manual Reload

This commit is contained in:
MaddoScientisto 2025-05-07 21:50:00 +02:00
commit 3b19e2b76f
10 changed files with 92 additions and 6 deletions

View file

@ -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);
}