Ejemplo n.º 1
0
 public virtual void CheckConstruction()
 {
     if (ConstructTime < 0)
     {
         UnderConstruct = false;
         Working        = true;
         for (int i = 0; i < Insider.Count; i++)
         {
             Insider[i].AddCommand(new ChangeWorkCommand(null));
             if (((Person)Insider[i]).Company)
             {
                 Insider[i].AddCommand(new GoJobCommand());
             }
             else
             {
                 Insider[i].AddCommand(new GoHomeCommand());
             }
         }
         Insider.Clear();
         ConstructionIndicator.SetActive(false);
         Model.SetActive(true);
     }
     else
     {
         ConstructTime -= Time.deltaTime * Insider.Count;
     }
 }