示例#1
0
文件: SoundResLib.cs 项目: ghrguse/ss
 /// <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);
 }
示例#2
0
    private void LoadSoundAssetBundle(string path, ResTag tag)
    {
        StResPath stPath = new StResPath(path, tag);

        ResLoadTool.Load <AudioClip>(stPath, OnSoundLoaded, null, OnSoundLoadError, stPath);
    }