hch
4 天以前 b19666d8acba43e715688da14fe19f029050e588
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();