Exemple #1
0
    //Initializes them in order
    IEnumerator InitializeManagersRoutine()
    {
        //Wait
        yield return(null);

        //Initializes Managers
        m_Game.Initialize();
        m_Events.Initialize();
        m_Level.Initialize();
        m_IO.Initialize();

        //Another wait
        yield return(null);

        // Load scene 1
        m_Level.LoadLevel(1);
    }