| using System; | 
| using System.Collections.Generic; | 
| using Cysharp.Threading.Tasks; | 
| using LitJson; | 
| using UnityEngine; | 
| using UnityEngine.UI; | 
|   | 
| //战场结算界面,存在多个的情况 | 
| public class BattleFailWin : UIBase | 
| { | 
|   | 
|     [SerializeField] Button tipEquipBtn; | 
|     [SerializeField] Button tipHeroPosBtn; | 
|     string battleName = "ArenaBattleField"; | 
|     protected override void InitComponent() | 
|     { | 
|         tipEquipBtn.AddListener(() => | 
|         { | 
|             CloseWindow(); | 
|         }); | 
|   | 
|         tipHeroPosBtn.AddListener(() => | 
|         { | 
|             CloseWindow(); | 
|             UIManager.Instance.OpenWindow<HeroPosWin>(); | 
|         }); | 
|     } | 
|   | 
|     protected override void OnPreOpen() | 
|     { | 
|     } | 
|   | 
|   | 
|     protected override void OnPreClose() | 
|     { | 
|         BattleSettlementManager.Instance.WinShowOver(battleName); | 
|     } | 
|   | 
| } |