//打开资料片中指定关卡 public void PlayDlc(Chapter chapter, int levelIdx) { Main.Ins.GameStateMgr.SaveState(); LevelDatas.LevelDatas lev = chapter.GetItem(levelIdx); Main.Ins.CombatData.GLevelItem = lev; Main.Ins.CombatData.GRecord = null; Main.Ins.CombatData.GLevelMode = LevelMode.SinglePlayerTask; Main.Ins.CombatData.GGameMode = GameMode.Normal; Main.Ins.CombatData.wayPoints = CombatData.GetWayPoint(lev); U3D.LoadLevelEx(); }