void Start() { guis1 = GameObject.Find("GUI").GetComponent<GUIS1>(); if(guis1.CurrentScene == 0) { busDestinations = new string[4]{"Penzance", "Newquay", "Plymouth", "Exeter"}; } else { busDestinations = new string[4]{"Penzence", "Newpuay", "Plynoutn", "Exeler"}; } shelterNumbers = AssignRandomSet(locations,1,locations+1); busNumbers = AssignRandomSet(locations,1,locations+1); AssignDestination(); }
void Start() { textMesh = GetComponent<TextMesh>(); guis1 = GameObject.Find("GUI").GetComponent<GUIS1>(); }