using vnxbqy.UI;
|
using System.Collections.Generic;
|
using UnityEngine.UI;
|
using UnityEngine;
|
|
public class LuckyCloudAreaCell : ILBehaviour
|
{
|
Text name;
|
Button select;
|
|
protected override void Awake()
|
{
|
name = proxy.GetWidgtEx<Text>("Text");
|
select = proxy.GetWidgtEx<Button>("CellView");
|
|
}
|
|
|
//index档位字典的数组索引
|
public void Display(int index)
|
{
|
var zoneID = LuckyCloudBuyModel.Instance.m_ZoneIDList[index];
|
name.text = Language.Get("LuckyCloundBuyZoneID" + zoneID);
|
|
select.SetListener(()=> {
|
LuckyCloudBuyModel.Instance.QueryLuckyCloudAward(zoneID);
|
});
|
}
|
|
|
}
|