Example #1
0
        public static void LoadScene(int sceneIndex, bool setActive = true, bool loadAsync = true, bool additive = true)
        {
            ScenesLoader.SetActives.Add(sceneIndex.ToString(), setActive);
            LoadSceneMode mode = additive ? LoadSceneMode.Additive : LoadSceneMode.Single;

            ScenesLoader.LoadScene((Action)(() => SceneManager.LoadScene(sceneIndex, mode)), (Func <AsyncOperation>)(() => SceneManager.LoadSceneAsync(sceneIndex, mode)), setActive, loadAsync, additive);
        }
Example #2
0
 private void Awake()
 {
     if (BaseInitializer.IsApplicationNotInitialized())
     {
         ScenesLoader.LoadScene(0, true, false, false);
     }
     else
     {
         Debug.Log((object)("[BaseInitializer]: Initializing " + this.gameObject.name + "..."));
         this.Init();
     }
 }