using vnxbqy.UI;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace vnxbqy.UI
|
{
|
public class FamilyZBGCell : CellView
|
{
|
[SerializeField] Text nameText;
|
[SerializeField] Image moneyIcon;
|
[SerializeField] Text cutText;
|
[SerializeField] Image buyState;
|
|
|
FairyNewModel familyModel { get { return ModelCenter.Instance.GetModel<FairyNewModel>(); } }
|
public void Display(int index)
|
{
|
var info = familyModel.familyZBGActions[familyModel.sortPlayerCut[index]];
|
nameText.text = string.Format("{0}.{1}", index + 1, info.Name);
|
moneyIcon.SetSmallIconWithMoneyType(familyModel.zbgPriceType);
|
cutText.text = info.Value2.ToString();
|
buyState.SetActive(info.Value3 == 1);
|
}
|
}
|
}
|
|