using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace Snxxz.UI
|
{
|
public class ServerAuctionClassifyCell : CellView
|
{
|
[SerializeField] Text m_ClassifyName;
|
[SerializeField] Transform m_ContainerSelect;
|
[SerializeField] Button m_Select;
|
|
AuctionModel model { get { return ModelCenter.Instance.GetModel<AuctionModel>(); } }
|
|
int classifyId = 0;
|
|
public void Display(int id)
|
{
|
classifyId = id;
|
var config = AuctionConfig.Get(id);
|
m_ClassifyName.text = config.TypeName;
|
m_ContainerSelect.gameObject.SetActive(model.selectClassifyId == id);
|
|
m_Select.SetListener(() =>
|
{
|
model.selectClassifyId = classifyId;
|
});
|
}
|
}
|
}
|