using System;
|
using System.Collections.Generic;
|
using Cysharp.Threading.Tasks;
|
using LitJson;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
//战场结算界面,存在多个的情况
|
public class BoneBattleFailWin : UIBase
|
{
|
[SerializeField] TextEx txtFuncName;
|
[SerializeField] Button tipEquipBtn;
|
[SerializeField] Button tipHeroPosBtn;
|
string battleName = "BoneBattleField";
|
protected override void InitComponent()
|
{
|
tipEquipBtn.AddListener(() =>
|
{
|
CloseWindow();
|
});
|
|
tipHeroPosBtn.AddListener(() =>
|
{
|
CloseWindow();
|
UIManager.Instance.OpenWindow<HeroPosWin>();
|
});
|
}
|
|
protected override void OnPreOpen()
|
{
|
int funcId = BoneFieldManager.Instance.funcId;
|
txtFuncName.text = FuncOpenLVConfig.HasKey(funcId) ? FuncOpenLVConfig.Get(funcId).Name : string.Empty;
|
}
|
|
|
protected override void OnPreClose()
|
{
|
BattleSettlementManager.Instance.WinShowOver(battleName);
|
}
|
|
}
|