コード例 #1
0
        public object Load(string name, ResourceData resourceData)
        {
            if (!resourceData.AudioFiles.TryGetValue(name, out var audioData))
            {
                throw new Exception($"Could not find audio data with the name: {name}");
            }

            if (audioData is null)
            {
                return(null);
            }
            return(AudioClip.LoadAudio(audioData));
        }