| | |
| | | |
| | | protected MainLevelConfig levelConfig; |
| | | |
| | | protected MainChapterConfig chapterConfig; |
| | | |
| | | public StoryBossBattleField(string _guid) : base(_guid) |
| | | { |
| | | |
| | |
| | | int level = FuncLineID;// 关卡 |
| | | extendData = _extendData; |
| | | levelConfig = MainLevelConfig.Get(level); |
| | | chapterConfig = MainChapterConfig.Get(levelConfig.ChapterID); |
| | | |
| | | SetBattleMode(BattleMode.Record); |
| | | } |
| | | |
| | | protected override void LoadMap(int mapID) |
| | | { |
| | | if (chapterConfig != null) |
| | | { |
| | | Texture texture = ResManager.Instance.LoadAsset<Texture>("Texture/FullScreenBg", chapterConfig.MapBG); |
| | | battleRootNode.SetBackground(texture); |
| | | } |
| | | } |
| | | |
| | | public override void Release() |
| | | { |
| | | base.Release(); |