protected override void PickUpAction() { base.PickUpAction(); AmmoInventory ammoInventory = _player.GetComponent <AmmoInventory>(); ammoInventory.Collect(ammo, ammoAmount); }
private void OnDestroy() { ammoInventory.Collect(ammoType, currentMagazine); }