Exemplo n.º 1
0
        public System.Collections.IEnumerator MainInitProcedure()
        {
            StartInit();
            while (m_roomDate == null)
            {
                yield return(new WaitForEndOfFrame());
            }
            //异步加载
            m_FishMgr           = new SceneFishMgr();
            m_BulletMgr         = new SceneBulletMgr();
            m_PlayerMgr         = new ScenePlayerMgr();
            m_EffectMgr         = new SceneEffectMgr();
            m_LauncherEffectMgr = new LauncherEffectMgr();
            m_ChestMgr          = new SceneChestMgr();

            m_FishMgr.Init(); yield return(new WaitForEndOfFrame());

            m_BulletMgr.Init(); yield return(new WaitForEndOfFrame());

            m_LauncherEffectMgr.Init(); yield return(new WaitForEndOfFrame());

            m_PlayerMgr.Init(); yield return(new WaitForEndOfFrame());

            m_EffectMgr.Init(); yield return(new WaitForEndOfFrame());

            m_ChestMgr.Init(); yield return(new WaitForEndOfFrame());

            SceneRuntime.Init(this);
            ResetScene(true);

            while (PathManager.Instance.IsInitOK == false)
            {
                yield return(new WaitForEndOfFrame());
            }
            SubStartCount();
            EndInit();
            isUpdate = true;
            yield break;
        }
Exemplo n.º 2
0
 public void Init(SceneChestMgr pChest)
 {
     m_pChest = pChest;
 }