示例#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);
 }