// Start is called before the first frame update
    void Start()
    {
        spawnTimer = 0f;

        //Get the overseer instance so we know it is created before we start spawning cars
        aiController = AIOverseer.GetInstance();
    }
Exemplo n.º 2
0
    private void Start()
    {
        //Singleton, if we are created and an instance exists
        //then destroy
        if (instance != null)
        {
            Destroy(this);
            return;
        }

        instance = this;

        //Initalise our AI list
        aliveAIList = new List <AICarData>();
    }