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 guid; 
 | 
  
 | 
    protected override void InitComponent() 
 | 
    { 
 | 
        tipEquipBtn.AddListener(() => 
 | 
        { 
 | 
            CloseWindow(); 
 | 
        }); 
 | 
  
 | 
        tipHeroPosBtn.AddListener(() => 
 | 
        { 
 | 
            CloseWindow(); 
 | 
            UIManager.Instance.OpenWindow<HeroPosWin>(); 
 | 
        }); 
 | 
    } 
 | 
  
 | 
    protected override void OnPreOpen() 
 | 
    { 
 | 
        guid = BattleSettlementManager.Instance.notifyGuid; 
 | 
    } 
 | 
  
 | 
  
 | 
    protected override void OnPreClose() 
 | 
    { 
 | 
        BattleSettlementManager.Instance.WinShowOver(guid); 
 | 
    } 
 | 
  
 | 
} 
 |