示例#1
0
    void Awake()
    {
        if (!gameStart)
        {
            anyManager = this;

            //SceneManager.LoadSceneAsync(1, LoadSceneMode.Additive);

            gameStart = true;
        }
    }
示例#2
0
    void Awake()
    {
        if (!gameStart)
        {
            anyManager = this;

            SceneManager.LoadSceneAsync(level_to_load, LoadSceneMode.Additive);

            gameStart = true;
        }
    }
示例#3
0
    void Awake()
    {
        if (!gameStart)
        {
            levelText = GameObject.FindGameObjectWithTag("levelDisplay");

            anyManager = this;
            SceneManager.LoadSceneAsync(2, LoadSceneMode.Additive);
            StartCoroutine(myMethod());
            gameStart = true;
        }
    }
示例#4
0
    // Use this for initialization
    void Awake()
    {
        // check if game has started or not
        if (!gameStart)
        {
            manager = this;

            // load scene as an additive
            SceneManager.LoadSceneAsync(1, LoadSceneMode.Additive);

            gameStart = true;
        }
    }
 private void Awake()
 {
     anyManager = this;
 }