예제 #1
0
        public virtual IEnumerator InitializeAsync(AudioManagerSetting config)
        {
            AudioPlayerCount = config.AudioPlayerCount;
            for (int i = 0; i < AudioPlayerCount; i++)
            {
                _audioPlayerList.Add(new AudioPlayer(gameObject.AddComponent <AudioSource>()));
            }
            yield return(LoadAudioClip(config.PreloadAudioPath, config.CacheType, config.IsReleaseCache));

            ChangeBaseVolume(PlayerPrefs.GetFloat(GetType().FullName, config.BaseVolume));
        }
예제 #2
0
 public override IEnumerator InitializeAsync(AudioManagerSetting setting)
 {
     _shouldAdjustVolumeRate = setting.ShouldAdjustVolumeRate;
     yield return(base.InitializeAsync(setting));
 }