示例#1
0
        protected internal override void LoadAudioClip(string relativeDirectory, string file, Action <AudioClip> onClipLoaded)
        {
            if (!FileExists(relativeDirectory, file))
            {
                return;
            }

            var data = ReadAllBytes(relativeDirectory, file);

            var clip = CustomAudio.LoadAudioClip(data, Path.GetFileNameWithoutExtension(file), this);

            onClipLoaded?.Invoke(clip);
        }