using UnityEngine;
|
using UnityEngine.UI;
|
|
using Snxxz.UI;
|
using System.Collections.Generic;
|
using System;
|
|
namespace Snxxz.UI
|
{
|
public class ItemCell : CommonItemBaisc
|
{
|
private Button _reducebtn;
|
public Button reducebtn
|
{
|
get
|
{
|
if (_reducebtn == null)
|
{
|
var _trans = transform.Find("Reducebtn");
|
_reducebtn = _trans != null ? _trans.GetComponent<Button>() : null;
|
}
|
return _reducebtn;
|
}
|
}
|
|
public override void Init(ItemModel model,bool isCompare = false, int compareScore = 0)
|
{
|
base.Init(model, isCompare,compareScore);
|
reducebtn.gameObject.SetActive(false);
|
}
|
|
public override void Init(ItemCellModel model, int compareScore = 0)
|
{
|
base.Init(model,compareScore);
|
reducebtn.gameObject.SetActive(false);
|
}
|
}
|
}
|