Exemple #1
0
    private void OnDisable()
    {
        //Move to Death() when turrets deal health damage
        CreditBanks Bank = FindObjectOfType <CreditBanks>();

        if (Bank != null)
        {
            Bank.AddCredits(CreditsOnDeath);
        }

        _waveBelongTo = 100;
    }
Exemple #2
0
 public void SellTower()
 {
     DisableTowerWheel();
     _bank.AddCredits(CalculateSelectedTowerRefund());
     _hitTower.Death();
 }