void Awake() { //1. 拿到引用,绑定事件 contentText = transform.Find("Image/Text").GetComponent <Text>(); instance = this; Destroy(gameObject, 5f); }
void Awake() { _instance = this; txt = transform.Find("Text").GetComponent <Text> (); }
void Awake() { //1. 拿到引用,绑定事件 contentText = transform.Find("Image/Text").GetComponent <Text>(); instance = this; Destroy(gameObject, 5f); }
void Awake() { _instance = this; txt = transform.Find("Text").GetComponent <Text> (); }