コード例 #1
0
ファイル: TranscriptMap.cs プロジェクト: andy521/ARPG_project
 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);
     }
 }
コード例 #2
0
 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);
     }
 }