void Awake() { _instance = this; tween = this.gameObject.GetComponent <TweenPosition>(); window = transform.Find("TranscriptWindow").GetComponent <TranscriptWindow>(); BtnTranscriptUI[] transcripts = this.GetComponentsInChildren <BtnTranscriptUI>(); foreach (var temp in transcripts) { transcriptDict.Add(temp.transcriptID, temp); } }
void Awake() { _instance = this; tween = this.gameObject.GetComponent<TweenPosition>(); window = transform.Find("TranscriptWindow").GetComponent<TranscriptWindow>(); BtnTranscriptUI[] transcripts = this.GetComponentsInChildren<BtnTranscriptUI>(); foreach(var temp in transcripts) { transcriptDict.Add(temp.transcriptID, temp); } }