public void ChangeProduce() { if (SelectedBuilding.GetComponent <Factory>()) { SelectedBuilding.GetComponent <Factory>().NextProduce(); } }
public void RemoveWorker() { Building b = SelectedBuilding.GetComponent <Building>(); if (b.Workers > 0) { b.ChangeWorker(-1); } Interface.UpdatePopText(CurrentPlayer); }
public void AddWorker() { Building b = SelectedBuilding.GetComponent <Building>(); if (CurrentPlayer.Population > 0 && b.Workers < b.WorkerCapacity) { b.ChangeWorker(1); } Interface.UpdatePopText(CurrentPlayer); }
public void CollectResources() { Building b = SelectedBuilding.GetComponent <Building>(); if (b.Storage > 0) { b.CollectStorage(); } UpdateResources(); }