// Use this for initialization void Start() { tipText = GetComponentInChildren <Text>(); anim = GetComponent <Animation>(); source = GetComponent <AudioSource>(); main = this; }
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); }
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); }