示例#1
0
 public void AddTime(float time)
 {
     time /= secondsPerMonth;
     currentTime.AddMonth(time);
     humanManager.AddAge(time);
     buildingManager.AddAge(time);
     resourceManager.AddTime(time);
 }
示例#2
0
 public bool AddTime(float time)  //true if returns resource
 {
     _age.AddMonth(time);
     if (humans.Count == 0)
     {
         return(false);
     }
     else
     {
         foreach (Human h in humans)
         {
             if (h._taskDone)
             {
                 return(true);
             }
         }
     }
     return(false);
 }