using UnityEngine;
|
using UnityEngine.UI;
|
|
public class TreasureEffectCell : MonoBehaviour
|
{
|
private Button _skillBtn;
|
public Button skillBtn
|
{
|
get
|
{
|
if (_skillBtn == null)
|
_skillBtn = this.GetComponent<Button>();
|
return _skillBtn;
|
}
|
}
|
|
private Image _skillIcon;
|
public Image skillIcon
|
{
|
get
|
{
|
if (_skillIcon == null)
|
_skillIcon = transform.Find("Icon").GetComponent<Image>();
|
return _skillIcon;
|
}
|
}
|
|
private GameObject _lockGo;
|
public GameObject lockGo
|
{
|
get
|
{
|
if (_lockGo == null)
|
_lockGo = transform.Find("LockImage").gameObject;
|
return _lockGo;
|
}
|
}
|
|
private Text _nameText;
|
public Text nameText
|
{
|
get
|
{
|
if (_nameText == null)
|
_nameText = transform.Find("NameText").GetComponent<Text>();
|
return _nameText;
|
}
|
}
|
|
private Text _lvText;
|
public Text lvText
|
{
|
get
|
{
|
if (_lvText == null)
|
_lvText = transform.Find("LVText").GetComponent<Text>();
|
return _lvText;
|
}
|
}
|
}
|