コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: NpcDialogUI.cs プロジェクト: andy521/ARPG_project
    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);
    }
コード例 #3
0
ファイル: NpcDialogUI.cs プロジェクト: swizLL/gitproject
 private void Awake()
 {
     _instance = this;
 }
コード例 #4
0
 void Awake()
 {
     _instance = this;
 }