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();
 }
Example #2
0
 public void SellButtonSelected()
 {
     //Debug.Log("SB: Sell button clicked");
     _tileEventHandler.SetOperation(8);
     _buildCheckPanel.Appear();
     _towerInfoPanel.ResetTextColor();
     _towerInfoPanel.ResetRepairCase();
     _towerInfoPanel.SetOriginalowerInfo();
     _towerInfoPanel.Appear();
     _notificationPanel.SetNotificationType("Sell");
     _notificationPanel.Appear();
 }