| | |
| | | using Cysharp.Threading.Tasks; |
| | | using LitJson; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | |
| | | } |
| | | |
| | | public override void Init(int MapID, int FuncLineID, JsonData _extendData, |
| | | public override async UniTask Init(int MapID, int FuncLineID, JsonData _extendData, |
| | | List<TeamBase> _redTeamList, List<TeamBase> _blueTeamList, byte turnMax) |
| | | { |
| | | base.Init(MapID, FuncLineID, extendData, _redTeamList, _blueTeamList, turnMax); |
| | | await base.Init(MapID, FuncLineID, extendData, _redTeamList, _blueTeamList, turnMax); |
| | | |
| | | SetBattleMode(BattleMode.Record); |
| | | } |
| | |
| | | BattleManager.Instance.DistributeNextReportPackage(guid); |
| | | } |
| | | |
| | | public override void ShowWindow(HB424_tagSCTurnFightInit vNetData) |
| | | public override async void ShowWindow(HB424_tagSCTurnFightInit vNetData) |
| | | { |
| | | PreviewBattleWin fsBattleWin = UIManager.Instance.GetUI<PreviewBattleWin>();// as FullScreenBattleWin; |
| | | if (null == fsBattleWin) |
| | | { |
| | | fsBattleWin = UIManager.Instance.OpenWindow<PreviewBattleWin>(); |
| | | fsBattleWin = await UIManager.Instance.OpenWindowAsync<PreviewBattleWin>(); |
| | | } |
| | | if (fsBattleWin == null) return; |
| | | fsBattleWin.SetBattleField(this); |
| | | |
| | | } |