Example #1
0
    void SpawnPC()
    {
        AIDriver en = (AIDriver)Instantiate(othervehicle, Vector3.one * -50f, Quaternion.identity).GetComponent <AIDriver>();

        Enemies.Add(en);
        en.Init(OnComing);
        OnComing = !OnComing;
    }
Example #2
0
    void SpawnPC()
    {
        AIDriver en = (AIDriver)Instantiate(othervehicle, Vector3.one * -50f, Quaternion.identity).GetComponent <AIDriver>();

        en.Init(toggle);
        Enemies.Add(en);

        toggle = !toggle;
    }
Example #3
0
    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;
    }