void Awake() { if (!gameStart) { anyManager = this; //SceneManager.LoadSceneAsync(1, LoadSceneMode.Additive); gameStart = true; } }
void Awake() { if (!gameStart) { anyManager = this; SceneManager.LoadSceneAsync(level_to_load, LoadSceneMode.Additive); gameStart = true; } }
void Awake() { if (!gameStart) { levelText = GameObject.FindGameObjectWithTag("levelDisplay"); anyManager = this; SceneManager.LoadSceneAsync(2, LoadSceneMode.Additive); StartCoroutine(myMethod()); gameStart = true; } }
// 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; }