少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-14 d627ab75aaceae1d2d1653e4f10201212c1da0e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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;
        }
    }
}