void Awake() { _instance = this; acceptBtn = transform.Find("Accept-Button").GetComponent<UIButton>(); talkLabel = transform.Find("Talk-Label").GetComponent<UILabel>(); tween = this.GetComponent<TweenScale>(); EventDelegate ed = new EventDelegate(this, "OnAccept"); acceptBtn.onClick.Add(ed); EventDelegate ed1 = new EventDelegate(this,"OnTweenFinish"); tween.onFinished.Add(ed1); gameObject.SetActive(false); }
void Awake() { _instance = this; acceptBtn = transform.Find("Accept-Button").GetComponent <UIButton>(); talkLabel = transform.Find("Talk-Label").GetComponent <UILabel>(); tween = this.GetComponent <TweenScale>(); EventDelegate ed = new EventDelegate(this, "OnAccept"); acceptBtn.onClick.Add(ed); EventDelegate ed1 = new EventDelegate(this, "OnTweenFinish"); tween.onFinished.Add(ed1); gameObject.SetActive(false); }
private void Awake() { _instance = this; }
void Awake() { _instance = this; }