Пример #1
0
        public LoadSceneData LoadScene(string _SceneName)
        {
            var data = new LoadSceneData(_SceneName);

            //LoadScene(data);
            return(data);
        }
Пример #2
0
        IEnumerator LoadSceneCoroutine(LoadSceneData data)
        {
            m_CurLoadSceneData = data;

            m_CurLoadSceneData.LoadInit();

            while (!m_CurLoadSceneData.LoadingUpdate()) //!m_AsyncOperation.isDone

            /*
             * if(m_ApplicationQuit || m_Destroyed) {
             *  m_AsyncOperation.allowSceneActivation = true;
             * } else {
             *  m_AsyncOperation.allowSceneActivation = m_CurLoadSceneData.m_AllowSceneActivation;
             * }
             */
            {
                yield return(null);
            }

            m_CurLoadSceneData = null;
        }
Пример #3
0
 public void LoadScene(LoadSceneData data)
 {
     m_LoadSceneDataQue.Enqueue(data);
 }