Пример #1
0
        public AudioClip GetAudioClip(LetterData data, LetterDataSoundType soundType = LetterDataSoundType.Phoneme)
        {
            AudioClip res;
            var       audiofile = data.GetAudioFilename(soundType);

            res = GetCachedResource("AudioArabic/Letters/" + audiofile);

            if (res == null)
            {
                Debug.LogWarning("Warning: cannot find audio clip for letter:" + data + " filename:" + audiofile);
            }
            return(res);
        }