private void OnDisable() { //Move to Death() when turrets deal health damage CreditBanks Bank = FindObjectOfType <CreditBanks>(); if (Bank != null) { Bank.AddCredits(CreditsOnDeath); } _waveBelongTo = 100; }
public void SellTower() { DisableTowerWheel(); _bank.AddCredits(CalculateSelectedTowerRefund()); _hitTower.Death(); }