using UnityEngine;
|
using UnityEngine.UI;
|
using Snxxz.UI;
|
using System.Collections.Generic;
|
using System;
|
|
namespace Snxxz.UI
|
{
|
|
public class ItemCell : CommonItemBaisc
|
{
|
private Button m_Reducebtn;
|
public Button reducebtn {
|
get {
|
if (m_Reducebtn == null)
|
{
|
LoadPrefab();
|
m_Reducebtn = this.transform.GetComponent<Button>("Container_ItemCell/Btn_Reduce");
|
}
|
return m_Reducebtn;
|
}
|
}
|
|
public override void Init(ItemModel model, bool isCompare = false)
|
{
|
base.Init(model, isCompare);
|
reducebtn.gameObject.SetActive(false);
|
}
|
|
public override void Init(ItemCellModel model)
|
{
|
base.Init(model);
|
reducebtn.gameObject.SetActive(false);
|
}
|
}
|
}
|