public void Shoot() { if (CurrentWeapon.Ammunition > 0) { CurrentWeapon.Fire(1); PlayerShotOrСhange?.Invoke(); } }
public void WeaponSelection(int weaponNumber) { _playerAnimation.HandState = _weapons[weaponNumber].HandState; CurrentWeapon.gameObject.SetActive(false); CurrentWeapon = _weapons[weaponNumber]; CurrentWeapon.gameObject.SetActive(true); PlayerShotOrСhange?.Invoke(); }