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)); }
public override IEnumerator InitializeAsync(AudioManagerSetting setting) { _shouldAdjustVolumeRate = setting.ShouldAdjustVolumeRate; yield return(base.InitializeAsync(setting)); }