Beispiel #1
0
 private void Awake()
 {
     _instance = this;
     text      = transform.Find("Text").GetComponent <Text>();
     tween     = this.GetComponent <DOTweenAnimation>();
     //Event  ShowPowerChange
     gameObject.SetActive(false);
 }
Beispiel #2
0
    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);
    }
Beispiel #3
0
 void Awake()
 {
     instance = this;
     numLabel = transform.Find("Label").GetComponent <UILabel>();
 }