// Use this for initialization private void Start() { //システム言語を取得 if (languageText != null) { SystemLanguage lang = Application.systemLanguage; var strVal = Enum.GetName(typeof(SystemLanguage), lang); languageText.text = "Language = " + (int)lang + " (" + strVal + ")"; } //チェックボックスの状態読み込み bool check = XPlayerPrefs.GetBool(gameObject.name + CHECKED_PREF, true); if (ynCheckToggle != null) { ynCheckToggle.isOn = check; } if (okCheckToggle != null) { okCheckToggle.isOn = check; } if (hardVolToggle != null) { hardVolToggle.isOn = FindObjectOfType <HardVolumeController>().HardOperation; } #if UNITY_EDITOR //色変換のテスト string htmlString = ColorUtility.ToHtmlStringRGBA(debugColor); Debug.Log("htmlString = " + htmlString); Debug.Log("GetColorCodeString = " + XColor.GetColorCodeString(htmlString)); Debug.Log("RedValue(html) = " + XColor.RedValue(htmlString)); Debug.Log("RedValue(Color) = " + debugColor.RedValue()); Debug.Log("GreenValue(html) = " + XColor.GreenValue(htmlString)); Debug.Log("GreenValue(Color) = " + debugColor.GreenValue()); Debug.Log("BlueValue(html) = " + XColor.BlueValue(htmlString)); Debug.Log("BlueValue(Color) = " + debugColor.BlueValue()); Debug.Log("AlphaValue(html) = " + XColor.AlphaValue(htmlString)); Debug.Log("AlphaValue(Color) = " + debugColor.AlphaValue()); int argb = debugColor.ToIntARGB(); Debug.Log("ToIntARGB = " + argb + ", ToColor->html = " + ColorUtility.ToHtmlStringRGBA(XColor.ToColor(argb))); outColor = XColor.ToColor(argb); #endif }