Esempio n. 1
0
 private void CheckIfSelected()
 {
     if (selected)
     {
         unitInfoPanel.UpdateInfoPanelHealth(GetComponent <Health>().GetHealth().ToString());
         upgradePanelButton.UpdateUpgradeButtonUI(null);
     }
 }
 private void SetSelectedUnitAttributesToPanel()
 {
     unitInfoPanel.UnselectAllUnits();
     defenderPrefab.DisplayDefenderInfoOntoPanel(unitInfoPanel);
     unitInfoPanel.UpdateInfoPanelHealth(defenderPrefab.GetUnitHealth().ToString());
 }
Esempio n. 3
0
 public void DisplayDefenderHealthOntoPanel()
 {
     unitInfoPanel.UpdateInfoPanelHealth(GetComponent <Health>().GetHealth().ToString());
 }