// Use this for initialization void Start() { AIRacerScript = GameObject.Find("MainGame").GetComponent <AIRacerClass>(); //Set WaypointNumber from 0 to Waypoint Maximum (0 to 9) for (int w = 0; w < WaypointList.Length; w++) { WaypointList[w].WaypointNumber = w; WaypointList[w].BoundingBoxXsize = BoundingSquareRadius; WaypointList[w].BoundingBoxYsize = BoundingSquareRadius; WaypointList[w].CentrePosition = GameObject.Find(WaypointNameList[w]).transform.position; } }
// Use this for initialization void Start() { AIRacerScript = GameObject.Find("MainGame").GetComponent <AIRacerClass>(); FearMachineScript = GameObject.Find("MainGame").GetComponent <FearMachine>(); }