Exemplo n.º 1
0
        protected internal override void LoadAudioClip(string relativeDirectory, string file, Action <AudioClip> onClipLoaded)
        {
            if (!FileExists(relativeDirectory, file))
            {
                return;
            }

            var clip = GetAsset <AudioClip>(relativeDirectory, file);

            if (!clip)
            {
                return;
            }

            CustomAudio.FinalizeAudioClip(clip, Path.GetFileNameWithoutExtension(file), this);

            onClipLoaded?.Invoke(clip);
        }