internal SayAction(string text, eVoice voice, eLanguage language) { properties = new SayProperties(); properties.language = language.ToString(); properties.text = text; properties.voice = voice.ToString(); }
internal SayDigitsAction(string digits, eVoice voice, eLanguage language) { properties = new SayDigitsActionProperties(); properties.digits = digits; properties.language = language.ToString(); properties.voice = voice.ToString(); }
internal SayNumberAction(string number, eVoice voice, eLanguage language) { properties = new SayNumberActionProperties(); properties.language = language.ToString(); properties.voice = voice.ToString(); properties.number = number; }
//處理AutoRun public static void HandleAutoRun(eLanguage lang, bool isBundle, bool isUpload, bool isCompare) { for (int i = 0; i < Setting.AutoActionItems.Count; i++) { switch (Setting.AutoActionItems[i].acion) { case eBuildAcion.BundleUncompress: if (!isBundle) { continue; } BundleBuilder.HandleBundle(string.Format(Setting.AutoActionItems[i].value, GetLangPath(lang)), Setting.BuildType, false, false); break; case eBuildAcion.BundleCompress: if (!isBundle) { continue; } BundleBuilder.HandleBundle(string.Format(Setting.AutoActionItems[i].value, GetLangPath(lang)), Setting.BuildType, true, false); break; case eBuildAcion.Zip: ZipBuilder.HandleZip(string.Format(Setting.AutoActionItems[i].value, GetLangPath(lang)), Setting.BuildType, false); break; case eBuildAcion.Move2Output: Extension.HandleOutputAssets(lang, false); break; case eBuildAcion.Move2Streaming: Extension.HandleStreamingAssets(lang, false); break; case eBuildAcion.BuildVersion: VersionBuilder.HandleVersion(lang.ToString(), false); break; case eBuildAcion.DownloadVersion: HTTP.HandleDownloadVersion(lang, false); break; case eBuildAcion.Upload: if (!isUpload) { continue; } if (!isCompare) { FTP.HandleUpload(string.Format("Assets/{0}/{1}", Setting.OutputAssetsFolder, GetLangPath(lang)), false); } else { FTP.HandleUploadEx(lang, false); } break; } } EditorUtility.DisplayDialog("AutoRun", "Auto Run Complete!", "OK"); }
public void ConnectDB() { if (DEBUG_printWWW) { Debug.Log("Connecting to Database... " + url); } //URL TO GET DATA FROM: FINISHED_URL = url + url_TWO + Language.ToString(); //INIT THE WWW class and retrieve the data WWW www = new WWW(FINISHED_URL); if (DEBUG_printWWW) { Debug.Log("WWW: " + www); } ///start coroutine to handle our data StartCoroutine(RegisterFunc(www)); }
//取得語系路徑 private static string GetLangPath(eLanguage lang, bool isSlash = false) { return(isSlash ? lang.ToString() + "/" : lang.ToString()); }
internal static void StoreLanguage(Settings settings, eLanguage language) { settings.Language = language.ToString(); }
public string GetDataName(eLanguage language, string dataName) { return(string.Format("{0}_{1}", language.ToString(), dataName)); }