예제 #1
0
 public void ChangeProduce()
 {
     if (SelectedBuilding.GetComponent <Factory>())
     {
         SelectedBuilding.GetComponent <Factory>().NextProduce();
     }
 }
예제 #2
0
        public void RemoveWorker()
        {
            Building b = SelectedBuilding.GetComponent <Building>();

            if (b.Workers > 0)
            {
                b.ChangeWorker(-1);
            }
            Interface.UpdatePopText(CurrentPlayer);
        }
예제 #3
0
        public void AddWorker()
        {
            Building b = SelectedBuilding.GetComponent <Building>();

            if (CurrentPlayer.Population > 0 && b.Workers < b.WorkerCapacity)
            {
                b.ChangeWorker(1);
            }
            Interface.UpdatePopText(CurrentPlayer);
        }
예제 #4
0
        public void CollectResources()
        {
            Building b = SelectedBuilding.GetComponent <Building>();

            if (b.Storage > 0)
            {
                b.CollectStorage();
            }

            UpdateResources();
        }