예제 #1
0
        public List <string> GetAllLocalizeVoiceFilePathList(string file)
        {
            List <string> list = new List <string>();

            list.Add(VoiceDirInfo.FileNameToPath(file));
            if (!LanguageManagerBase.Instance.IgnoreLocalizeVoice)
            {
                foreach (var language in LanguageManagerBase.Instance.VoiceLanguages)
                {
                    list.Add(VoiceDirInfo.FileNameToPath(file, language));
                }
            }
            return(list);
        }
예제 #2
0
 public string GetLocalizeVoiceFilePath(string file)
 {
     if (LanguageManagerBase.Instance.IgnoreLocalizeVoice)
     {
         return(VoiceDirInfo.FileNameToPath(file));
     }
     else
     {
         string language = LanguageManagerBase.Instance.CurrentLanguage;
         if (LanguageManagerBase.Instance.VoiceLanguages.Contains(language))
         {
             return(VoiceDirInfo.FileNameToPath(file, language));
         }
         else
         {
             return(VoiceDirInfo.FileNameToPath(file));
         }
     }
 }