private static int SoundLoaderLoad(IntPtr path) { var pathstr = Marshal.PtrToStringUni(path); var res = new SoundResource(); if (res.Load(pathstr)) { EffekseerSystem.Instance.soundList.Add(res); return(EffekseerSystem.Instance.soundList.Count); } return(0); }
private static int SoundLoaderLoad(IntPtr path) { var pathstr = Marshal.PtrToStringUni(path); // HACK var combinedPath = CombinePathForResource(currentLoadingEffectPath, pathstr); var res = new SoundResource(); if (res.Load(combinedPath, pathstr, EffekseerSystem.Instance.assetBundle)) { EffekseerSystem.Instance.soundList.Add(res); return(EffekseerSystem.Instance.soundList.Count); } return(0); }