void SpawnPC() { AIDriver en = (AIDriver)Instantiate(othervehicle, Vector3.one * -50f, Quaternion.identity).GetComponent <AIDriver>(); Enemies.Add(en); en.Init(OnComing); OnComing = !OnComing; }
void SpawnPC() { AIDriver en = (AIDriver)Instantiate(othervehicle, Vector3.one * -50f, Quaternion.identity).GetComponent <AIDriver>(); en.Init(toggle); Enemies.Add(en); toggle = !toggle; }
void SpawnPC() { int i = Random.Range(0, CarPre.Count); othervehicle = CarPre[i]; AIDriver en = (AIDriver)Instantiate(othervehicle, Vector3.one * -50f, Quaternion.identity).GetComponent <AIDriver>(); en.gameObject.transform.localScale = Vector3.one * .75f; Enemies.Add(en); en.Init(OnComing); OnComing = !OnComing; }