/// <summary> /// 预加载音频资源 /// </summary> /// <param name="soundsList"></param> /// <param name="preLoadSoundsEnd"></param> public static void PreLoadSounds( List <StResPath> soundsList, DelegateEnums.NoneParam preLoadSoundsEnd, ResLoaderManager.DelegateLoaderProgress preLoadSoundsProgress = null) { OnPreLoadSoundsEnd = preLoadSoundsEnd; ResLoadTool.LoadList <AudioClip>(soundsList, "preLoadSoundList", OnPreLoadSoundComplete, preLoadSoundsProgress, null, null, null, soundsList); }
private void LoadSoundAssetBundle(string path, ResTag tag) { StResPath stPath = new StResPath(path, tag); ResLoadTool.Load <AudioClip>(stPath, OnSoundLoaded, null, OnSoundLoadError, stPath); }