hch
4 天以前 0fc013dc8d4d503ac5312512f805c7350f4f68f7
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
43
44
45
46
47
48
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
 
/// <summary>
/// 公会捐赠界面
/// </summary>
public class GuildDonateWin : UIBase
{
    [SerializeField] GuildDonateCell[] donateCells;
    [SerializeField] Button detailBtn;
 
 
 
    protected override void InitComponent()
    {
        detailBtn.AddListener(() =>
        {
            // UIManager.Instance.OpenWindow<GuildDonateDetailWin>();
        });
    }
 
    protected override void OnPreOpen()
    {
        GuildManager.Instance.DonateCntListEvent += DonateCntListEvent;
        Display();
    }
 
    protected override void OnPreClose()
    {
        GuildManager.Instance.DonateCntListEvent -= DonateCntListEvent;
    }
 
    void Display()
    {
        for (int i = 0; i < donateCells.Length; i++)
        {
            donateCells[i].Display();
        }
    }
 
    void DonateCntListEvent()
    {
        Display();
    }
 
}