private void Awake() { _instance = this; text = transform.Find("Text").GetComponent <Text>(); tween = this.GetComponent <DOTweenAnimation>(); //Event ShowPowerChange gameObject.SetActive(false); }
void Awake() { _Instance = this; label = transform.Find("Label").GetComponent <UILabel>(); tween = GetComponent <TweenAlpha>(); EventDelegate ed = new EventDelegate(this, "OnTweenFinised"); tween.onFinished.Add(ed); gameObject.SetActive(false); }
void Awake() { instance = this; numLabel = transform.Find("Label").GetComponent <UILabel>(); }