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()); }
public void DisplayDefenderHealthOntoPanel() { unitInfoPanel.UpdateInfoPanelHealth(GetComponent <Health>().GetHealth().ToString()); }