Esempio n. 1
0
 // Use this for initialization
 protected void Start()
 {
     nw   = GameObject.Find("NameWizard").GetComponent <NameWizard> ();
     name = nw.RandomName();
     GenerateArchitecture();
     StartCoroutine(PopulationGrowthRoutine());
     StartCoroutine(ProduceRoutine());
 }
Esempio n. 2
0
 void Start()
 {
     alive = true;
     if (randomInfo)
     {
         if (GameObject.Find("NameWizard") != null)
         {
             NameWizard nw = GameObject.Find("NameWizard").GetComponent <NameWizard> ();
             name = nw.RandomName() + " " + nw.RandomLastName();
         }
         else
         {
             name = "nameless";
         }
     }
     gameController.unitList.Add(this);
 }