Weapon switching

This commit is contained in:
MaddoScientisto 2025-04-09 23:24:55 +02:00
commit 036cc4b940
10 changed files with 49 additions and 17 deletions

View file

@ -187,4 +187,16 @@ public partial class Active : PlayerStateBase
{
_activationProvider.HandleInteraction();
}
private void HandleWeaponSwitch()
{
if (_inputProvider.GetWeaponNextJustPressed())
{
_weaponProvider.NextWeapon();
}
else if (_inputProvider.GetWeaponPreviousJustPressed())
{
_weaponProvider.PreviousWeapon();
}
}
}