private void ManageIconGreyOut() { PlayerMotherbase motherbase = GameManager.Instance.GetLocalMotherbaseComponent(); if (motherbase) { if (motherbase.money < PlayerMotherbase.AGGRESIVE_COST) { aggressiveUnitBtn.interactable = false; } else { aggressiveUnitBtn.interactable = true; } if (motherbase.money < PlayerMotherbase.CONSTRUCT_COST) { constructionUnitBtn.interactable = false; } else { constructionUnitBtn.interactable = true; } // Update money indicator moneyLabel.text = "$" + motherbase.money; } }
private void AddConstructionUnit() { PlayerMotherbase motherbase = GameManager.Instance.GetLocalMotherbaseComponent(); motherbase.SpawnConstructionUnit(); }
private void AddAggressiveUnit() { PlayerMotherbase motherbase = GameManager.Instance.GetLocalMotherbaseComponent(); motherbase.SpawnAggressiveUnit(); }