yyl
2026-02-11 3f2cd27c5dfb3b450245bf1a37fc1b3414031c7c
Main/System/Battle/BattleField/StoryBattleField.cs
@@ -2,6 +2,7 @@
using LitJson;
using UnityEngine;
using System.Collections.Generic;
using Cysharp.Threading.Tasks;
// 【主线战斗流程】
// 发送 B413  (ReqType 为 2 或 3)
@@ -77,7 +78,21 @@
    {
        if (chapterConfig != null)
        {
        #pragma warning disable CS0618 // Obsolete — sync legacy fallback, use LoadMapAsync
            Texture texture = ResManager.Instance.LoadAsset<Texture>("Texture/FullScreenBg", chapterConfig.MapBG);
        #pragma warning restore CS0618
            battleRootNode.SetBackground(texture);
        }
    }
    /// <summary>
    /// US2: Async map loading.
    /// </summary>
    protected override async UniTask LoadMapAsync(int mapID)
    {
        if (chapterConfig != null)
        {
            Texture texture = await ResManager.Instance.LoadAssetAsync<Texture>("Texture/FullScreenBg", chapterConfig.MapBG);
            battleRootNode.SetBackground(texture);
        }
    }