private void SelectTower(int id) { TowerEntry entry = GetTowerEntry(id); if (entry == null) { return; } TowerSelected(entry.details); selected = entry; }
private void HandleFinance(TowerEntry entry) { if (levelManager.CheckIfEnoughMoney(entry.details.Price)) { HandleTowerBuyOrSell(-entry.details.Price); HandleSound(); } else { DisplayNotEnoughMoney("Not enough money to buy a tower!"); } }