From b19666d8acba43e715688da14fe19f029050e588 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 24 十月 2025 16:40:26 +0800
Subject: [PATCH] Merge branch 'master' of http://mobile.secondworld.net.cn:10010/r/Project_SG_scripts
---
Main/System/Battle/BattleField/StoryBossBattleField.cs | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Main/System/Battle/BattleField/StoryBossBattleField.cs b/Main/System/Battle/BattleField/StoryBossBattleField.cs
index fb71a62..ae18d85 100644
--- a/Main/System/Battle/BattleField/StoryBossBattleField.cs
+++ b/Main/System/Battle/BattleField/StoryBossBattleField.cs
@@ -11,6 +11,8 @@
protected MainLevelConfig levelConfig;
+ protected MainChapterConfig chapterConfig;
+
public StoryBossBattleField(string _guid) : base(_guid)
{
@@ -24,10 +26,20 @@
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();
--
Gitblit v1.8.0