void Awake(){ _instance = this; tween = this.GetComponent<TweenPosition> (); dialog = transform.Find ("TranscriptMapDialog").GetComponent<TranscriptMapDialog> (); closeButton = transform.Find ("BtnBack").GetComponent<UIButton> (); EventDelegate ed1 = new EventDelegate(this,"OnCloseButtonClick"); closeButton.onClick.Add (ed1); }
void Awake() { instance = this; btnClose = transform.Find("btn-close").GetComponent <UIButton>(); dialog = transform.Find("Dialog").GetComponent <MapDialog>(); enterBtn = transform.Find("Dialog/btn-enter").GetComponent <UIButton>(); EventDelegate ed1 = new EventDelegate(this, "OnCloseClick"); btnClose.onClick.Add(ed1); EventDelegate ed2 = new EventDelegate(this, "OnEnter"); }
//private TranscriptMapDilog transcriptMapDilog; private void Awake() { _instance = this; tweenAnim = this.GetComponent <DOTweenAnimation>(); dialog = transform.Find("TranscriptMapDilogImage").GetComponent <TranscriptMapDilog>(); timerDialog = transform.Find("TimeDialogImage").GetComponent <TimerDialog>(); BtnTranscript[] transcripts = this.GetComponentsInChildren <BtnTranscript>(); foreach (var temp in transcripts) { transcriptDict.Add(temp.id, temp); } }
void Awake() { _instance = this; tween = this.GetComponent<TweenPosition>(); dialog = transform.Find("TranscriptMapDialog").GetComponent<TranscriptMapDialog>(); BtnTranscript[] transcripts = this.GetComponentsInChildren<BtnTranscript>(); timerDialog = transform.Find("TimerDialog").GetComponent<TimerDialog>(); foreach (var temp in transcripts) { transcriptDict.Add(temp.id,temp); } }
private void Awake() { _instance = this; dialog = transform.Find("transcripDialog").GetComponent <TranscriptDialog>(); }
void Awake() { _instance = this; tween = this.GetComponent<TweenPosition>(); dialog = transform.Find("TranscriptMapDialog").GetComponent<TranscriptMapDialog>(); }
void Awake() { _instance = this; tween = this.GetComponent <TweenPosition>(); dialog = transform.Find("TranscriptMapDialog").GetComponent <TranscriptMapDialog>(); }