コード例 #1
0
 private void Awake()
 {
     SetTime(0);
     currentSong = FindObjectOfType <AudioManager>().currentSong;
     currentSong.instrumentIndex = 0;
     songNameShadow       = transform.GetChild(1).GetComponent <Text>();
     songName             = transform.GetChild(2).GetComponent <Text>();
     audioSources         = GetComponents <AudioSource>();
     instrumentImagePanel = transform.GetChild(0);
     keys             = new List <GameObject>();
     keySpawner       = FindObjectOfType <KeySpawnManager>();
     instrumentImages = GetComponentInChildren <InstrumentImages>();
 }
コード例 #2
0
ファイル: SpawnKeys.cs プロジェクト: 7aylor/Unity
 private void Awake()
 {
     audioSource = GetComponent <AudioSource>();
     currentSong = FindObjectOfType <AudioManager>().currentSong;
 }