Пример #1
0
 /// <summary>
 /// 调用bgAudioSource的Play播放音频文件,,直接使用已经预加载的AB资源
 /// </summary>
 /// <param name="volumeScale">音量缩放比</param>
 public static void PlayBg(string audioABName, float volumeScale = 1.0f)
 {
     KSound.PlayBg(KAssetBundle.GetObject <AudioClip>(audioABName), volumeScale);
 }