private void OnPickupLoot_Money(PickupLootEvent loot) { LootData_Money money = loot.LootData as LootData_Money; moneyBagsCollected++; CollectedMoney += money.GetMoneyInDrop(); }
protected override void OnDistanceTooFar() { missedMoney += itemDropData.GetMoneyInDrop(); Destroy(gameObject); }