// Use this for initialization protected void Start() { nw = GameObject.Find("NameWizard").GetComponent <NameWizard> (); name = nw.RandomName(); GenerateArchitecture(); StartCoroutine(PopulationGrowthRoutine()); StartCoroutine(ProduceRoutine()); }
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); }