Exemple #1
0
    public System.Collections.IEnumerator MainInitProcedure(object obj)
    {
        //异步加载
        m_FishMgr           = new SceneFishMgr();
        m_BulletMgr         = new SceneBulletMgr();
        m_PlayerMgr         = new ScenePlayerMgr();
        m_SkillMgr          = new SceneSkillMgr();
        m_EffectMgr         = new SceneEffectMgr();
        m_LauncherEffectMgr = new LauncherEffectMgr();
        m_ChestMgr          = new SceneChestMgr();
        m_BtnsMgr           = new SceneBtnsMrg();
        m_NewGide           = new SceneNewGuide();

        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_SkillMgr.Init(); yield return(new WaitForEndOfFrame());

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

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

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

        m_NewGide.InitObj(); yield return(new WaitForEndOfFrame());

        //加载技能栏
        m_LogicUI.InitByScene();

        SceneRuntime.Init(this);
        ResetScene((JoinRoomData)obj, true);

        while (PathManager.Instance.IsInitOK == false)
        {
            yield return(new WaitForEndOfFrame());
        }
        GlobalLoading.Instance.Hide();
        GlobalHallUIMgr.Instance.ShowHead(HeadWind.HeadStatue.Head_Normal);
        GlobalAudioMgr.Instance.PlayerBGMusic(Audio.EffectBGType.EffectBGSound1);
        // m_NewGide.CheckIsLauncherGuide();
        //调整系公告位置
        GlobalHallUIMgr.Instance.AdjustNoticePos();
        m_LogicUI.UpdateUnLockDataInfo();
        m_LogicUI.UpdateLotteryInfo();
        SubStartCount();
        yield break;
    }
Exemple #2
0
 public void Init(SceneChestMgr pChest)
 {
     m_pChest = pChest;
 }