public void UpgradeButtonSelected() { if (!_enoughGold) { _notificationPanel.SetNotificationType("NotEnoughMoney"); _notificationPanel.Appear(); _buildCheckPanel.DisAppear(); _towerInfoPanel.ResetTextColor(); return; } if (_destroy) { _notificationPanel.SetNotificationType("UpgradeWhenDestroied"); _notificationPanel.Appear(); _buildCheckPanel.DisAppear(); _towerInfoPanel.ResetTextColor(); return; } _tileEventHandler.SetOperation(6); _bcpYes.SetUpgradeCase(); _buildCheckPanel.Appear(); _towerInfoPanel.SetUpgradingColor(); _towerInfoPanel.DisplayUpgradedInfo(); _towerInfoPanel.Appear(); _notificationPanel.SetNotificationType("Upgrade"); _notificationPanel.Appear(); }