예제 #1
0
 private void Awake()
 {
     if (InAudioInstanceFinder.DataManager.MusicTree != null)
     {
         CreateMusicLists(InAudioInstanceFinder.DataManager.MusicTree);
         MusicUpdater.SetInitialSettings(InAudioInstanceFinder.DataManager.MusicTree, 1.0f, 1.0f);
         AudioUpdater.AudioTreeInitialVolume(InAudioInstanceFinder.DataManager.AudioTree, 1.0f);
     }
     else
     {
         Debug.LogError("InAudio: Could not initialize the music player. Did you create an InAudio project?");
     }
 }
예제 #2
0
        private void Awake()
        {
            if (InAudioInstanceFinder.DataManager.MusicTree != null)
            {
                CreateMusicLists(InAudioInstanceFinder.DataManager.MusicTree);
                MusicUpdater.SetInitialSettings(InAudioInstanceFinder.DataManager.MusicTree, 1.0f, 1.0f);
                AudioUpdater.AudioTreeInitialVolume(InAudioInstanceFinder.DataManager.AudioTree, 1.0f);

                // SK: Koreographer integration
                SonicBloom.Koreo.Koreographer.Instance.musicPlaybackController = this;
            }
            else
            {
                Debug.LogError("InAudio: Could not initialize the music player. Did you create an InAudio project?");
            }
        }