Example #1
0
 ///<summary> Ask the loading of the next scene [SceneData]</summary>
 public void CallLoadScene(SceneData aScene)
 {
     if (!SceneManager_IsInit(true))
     {
         return;
     }
     if (SceneExist(aScene.GetSceneName()))
     {
         SetNewSceneData(aScene);
         LoadScene(aScene.GetSceneName());
     }
 }
Example #2
0
        ///<summary> Set a new SceneData for the LevelManager </summary>
        private void SetNewSceneData(SceneData aData)
        {
            m_CurrentSceneData = aData;

            if (m_CurrentSceneData != null)
            {
                m_CallType = eSceneM_SceneCallType.SceneData;
            }
            else
            {
                m_CallType = eSceneM_SceneCallType.Path;
            }
        }