| | |
| | | using LitJson; |
| | | using UnityEngine; |
| | | using System.Collections.Generic; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | // 【主线战斗流程】 |
| | | // 发送 B413 (ReqType 为 2 或 3) |
| | |
| | | { |
| | | 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); |
| | | } |
| | | } |