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
| using UnityEngine;
| using UnityEngine.UI;
|
| public class WayCell : MonoBehaviour
| {
| private Image _icon;
| public Image icon
| {
| get
| {
| if (_icon == null)
| _icon = transform.Find("Icon").GetComponent<Image>();
| return _icon;
| }
| }
|
| private Button _wayBtn;
| public Button wayButton
| {
| get
| {
| if (_wayBtn == null)
| _wayBtn = this.GetComponent<Button>();
| return _wayBtn;
| }
| }
|
| private Text _wayName;
| public Text wayName
| {
| get
| {
| if (_wayName == null)
| _wayName = transform.Find("WayText").GetComponent<Text>();
| return _wayName;
| }
| }
|
| private Text _funcName;
| public Text funcName
| {
| get
| {
| if (_funcName == null)
| _funcName = transform.Find("IconText").GetComponent<Text>();
| return _funcName;
| }
| }
|
| }
|
|