using Snxxz.UI;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
public class RuneCell : MonoBehaviour
|
{
|
private ItemCell _itemCell;
|
public ItemCell itemCell
|
{
|
get
|
{
|
if (_itemCell == null)
|
_itemCell = transform.Find("ItemCell").GetComponent<ItemCell>();
|
return _itemCell;
|
}
|
}
|
|
private Text _itemNameText;
|
public Text itemNameText
|
{
|
get
|
{
|
if (_itemNameText == null)
|
_itemNameText = transform.Find("ItemNameText").GetComponent<Text>();
|
return _itemNameText;
|
}
|
}
|
|
private Text _sourceText;
|
public Text SourceText
|
{
|
get
|
{
|
if (_sourceText == null)
|
_sourceText = transform.Find("SourceText").GetComponent<Text>();
|
return _sourceText;
|
}
|
}
|
|
private Image _converIcon;
|
public Image converIcon
|
{
|
get
|
{
|
if (_converIcon == null)
|
_converIcon = transform.Find("ConverBtn/ConverImage").GetComponent<Image>();
|
return _converIcon;
|
}
|
}
|
|
private Text _converNumText;
|
public Text converNumText
|
{
|
get
|
{
|
if (_converNumText == null)
|
_converNumText = transform.Find("ConverBtn/ConverCount").GetComponent<Text>();
|
return _converNumText;
|
}
|
}
|
private Button _runeCellBtn;
|
public Button RuneCellBtn
|
{
|
get
|
{
|
if (_runeCellBtn == null)
|
_runeCellBtn = this.GetComponent<Button>();
|
return _runeCellBtn;
|
}
|
}
|
|
private Button _converBtn;
|
public Button converBtn
|
{
|
get
|
{
|
if (_converBtn == null)
|
_converBtn = transform.Find("ConverBtn").GetComponent<Button>();
|
return _converBtn;
|
}
|
}
|
}
|