Esempio n. 1
0
    protected override void PickUpAction()
    {
        base.PickUpAction();
        AmmoInventory ammoInventory = _player.GetComponent <AmmoInventory>();

        ammoInventory.Collect(ammo, ammoAmount);
    }
Esempio n. 2
0
 private void OnDestroy()
 {
     ammoInventory.Collect(ammoType, currentMagazine);
 }