예제 #1
0
        public void OnSceneWasLoaded(Scene scene, LoadSceneMode mode)
        {
            UnityEngine.Debug.Log("SCENE LOADED: " + scene.name);
            if (scene.buildIndex == 0)
            {
                return;
            }
            var sceneVo = new LoadedSceneVO(scene, mode);

            SendNotification(Notifications.SCENE_LOADED, sceneVo, null);
        }
예제 #2
0
        /// <summary>
        /// Called afeter new scene was loaded.
        /// Subscribed to SceneManager.sceneLoaded in Execute() above
        /// </summary>
        private void OnSceneWasLoaded(Scene scene, LoadSceneMode mode)
        {
            if (scene.buildIndex == 0)
            {
                return;
            }
            var sceneVo = new LoadedSceneVO(scene, mode);

            _lizzardObjectsProxy.DeleteAllNullObjects();

            SendNotification(Notifications.SCENE_LOADED, sceneVo, null);
        }