// Use this for initialization
 void Start()
 {
     tipText = GetComponentInChildren <Text>();
     anim    = GetComponent <Animation>();
     source  = GetComponent <AudioSource>();
     main    = this;
 }
示例#2
0
 private void Init()
 {
     _instance   = this;
     mTransform  = this.transform;
     text_tip    = mTransform.Find("text_tip").GetComponent <Text>();
     canvasGroup = mTransform.GetComponent <CanvasGroup>();
     gameObject.SetActive(false);
     //EventSystem.current.SetSelectedGameObject(gameObject);
 }
示例#3
0
 private void Init()
 {
     _instance = this;
     mTransform = this.transform;
     text_tip = mTransform.Find("text_tip").GetComponent<Text>();
     canvasGroup = mTransform.GetComponent<CanvasGroup>();
     gameObject.SetActive(false);
     //EventSystem.current.SetSelectedGameObject(gameObject);
 }