Пример #1
0
    protected override void PickUpAction()
    {
        base.PickUpAction();
        AmmoInventory ammoInventory = _player.GetComponent <AmmoInventory>();

        ammoInventory.Collect(ammo, ammoAmount);
    }
Пример #2
0
 private void OnDestroy()
 {
     ammoInventory.Collect(ammoType, currentMagazine);
 }