Example #1
0
        public void Load(int stageID)
        {
            if (stageID < 0 || stageID > Config.crossroadstageConfig.getInstace().RowNum)
            {
                string e = string.Format("过马路关卡数不正确 {0}", stageID);
                throw new System.Exception(e);
            }

            CrossRoadModelManager.GetInstance().stageID = stageID;
            PageMgr.CloseAllPage(true, "");
            PageMgr.ShowPage <UICrossRoadLoading>();
            SetFSM("UICrossRoadLoading");
            LoadModule();
        }
        public void Load(int stageID)
        {
            if (stageID < 0)
            {
                string e = string.Format("过马路关卡数不正确 {0}", stageID);
                throw new System.Exception(e);
            }
            else if (stageID >= Config.crossroadstageConfig.getInstace().RowNum)
            {
                int number = Config.crossroadstageConfig.getInstace().RowNum;
                stageID = Config.crossroadstageConfig.getInstace().getCell(number).level;
            }
            GameSoundManager.GetInstance().PlayBGMusicAsync(Config.globalConfig.getInstace().ZooSceneBGM);

            CrossRoadModelManager.GetInstance().stageID = stageID;
            PageMgr.CloseAllPage(true, "");
            PageMgr.ShowPage <UICrossRoadLoading>();
            SetFSM("UICrossRoadLoading");
            LoadModule();
        }