//--------------------------------------------------------------------- public override void enter() { mfCurSecond = 0.0f; // 切换地图 if (mLevel.CurMapVibId == 0) { mLevel.CurMapVibId = mLevel.genRandomMap(); } else if (mLevel.NextMapVibId != 0) { mLevel.CurMapVibId = mLevel.NextMapVibId; mLevel.NextMapVibId = 0; } // 服务端广播关卡更新 mScene.getProtocol().s2allcLevelUpdate(_eLevelState.Normal, mLevel.getLevelVibId(), mLevel.CurMapVibId, mLevel.NextMapVibId, mfCurSecond, mfMaxSecond); if (mIsFistLevel) { mIsFistLevel = false; } else { mLevel.outFormation(); } }
//--------------------------------------------------------------------- public override void enter() { mfCurSecond = 0.0f; // 切换地图 if (mLevel.NextMapVibId == 0) { mLevel.NextMapVibId = mLevel.genRandomMap(); } while (mLevel.NextMapVibId == mLevel.CurMapVibId) { mLevel.NextMapVibId = mLevel.genRandomMap(); } // 清除所有鱼 mLevel.clearAllFish(); // 服务端广播关卡更新 mScene.getProtocol().s2allcLevelUpdate(_eLevelState.Switch, mLevel.getLevelVibId(), mLevel.CurMapVibId, mLevel.NextMapVibId, mfCurSecond, mfMaxSecond); }