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); }
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)); } } }