public void RepairButtonSelected() { if (!_enoughGold) { _notificationPanel.SetNotificationType("NotEnoughMoney"); _notificationPanel.Appear(); _buildCheckPanel.DisAppear(); return; } if (_fullHp) { _notificationPanel.SetNotificationType("RepairWithFullHp"); _notificationPanel.Appear(); _buildCheckPanel.DisAppear(); _towerInfoPanel.SetOriginalowerInfo(); _towerInfoPanel.ResetTextColor(); return; } _tileEventHandler.SetOperation(7); _buildCheckPanel.Appear(); _towerInfoPanel.RepairCase(); _towerInfoPanel.ResetTextColor(); _towerInfoPanel.SetOriginalowerInfo(); _towerInfoPanel.Appear(); _notificationPanel.SetNotificationType("Repair"); _notificationPanel.Appear(); }