public void EnableUI(AgentStats a) { DefaultState(); active = UIACTIVE.Agent; agentRef = a; agentUI.SetActive(true); }
public void DisableUI() { active = UIACTIVE.none; revertUI.SetActive(false); confirmUI.SetActive(false); baseUI.SetActive(false); agentUI.SetActive(false); enableUIButton.SetActive(true); fullyUpgraded = false; }
public void EnableUI(Base b) { DefaultState(); active = UIACTIVE.Base; baseRef = b; baseNameText.text = baseRef.baseName; baseRef.RequiredToBuild(); baseUI.SetActive(true); for (int i = 0; i < valueImages.Length; i++) { if (i <= baseRef.baseType) { valueImages[i].gameObject.SetActive(true); } else { valueImages[i].gameObject.SetActive(false); } } fullyUpgraded = baseRef.IsFullyUpgraded(); }