yyl
7 天以前 871594462e82d6bc1341918d39e11ab036d59563
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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);
    }
 
}