using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityScreen = UnityEngine.Screen; using TMPro; using MarksAssets.FullscreenWebGL; using status = MarksAssets.FullscreenWebGL.FullscreenWebGL.status; using navigationUI = MarksAssets.FullscreenWebGL.FullscreenWebGL.navigationUI; using System.Globalization; public class Starting : MonoBehaviour { // Start is called before the first frame update void Start() { //Get.o2("Canvas","Video logo").SetActive(true); Get.o2("Canvas","PanelPosition").SetActive(false); _G.OBJs[299] = new string[100]; _G.OBJs[299][0] = "null"; _G.OBJs[299][1] = "null"; DOIT.CloseALLPNL(); GameObject.Find("Canvas").transform.Find("START").gameObject.SetActive(true); LanguageSelection(); /* if(WebGLBrowserCheck.IsMobileBrowser()){ //Get.o2("START","Full").GetComponent().enabled=true; Get.o1("modescreen").GetComponent().text="phone "; } //Get.o2("START","Full").GetComponent().enabled=true;*/ CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture; System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Steps.Update(); } public void hidelogo(){ print("Video logo out" ); Get.o2("Canvas","Video logo").SetActive(false); } void Update() { TRANS.go(); //DOIT.btnColor(); COLORSET.On(); //if(GameObject.Find("MESURE"))_G.NAVIGATE=false; } //LANGUAGE void LanguageSelection() { if (Application.systemLanguage == SystemLanguage.French) _G.L = 2; if (Application.systemLanguage == SystemLanguage.English) _G.L = 1; //if (Application.systemLanguage == SystemLanguage.Spanish) _G.L = 3; Get.o1("Canvas/Panel_LOGO/Language").transform.GetComponent().value = _G.L - 1; } public void language() { if (this.name == "FR") _G.L = 2; if (this.name == "ENG") _G.L = 1; } public void languageChange() { int v= Get.o1("Canvas/Panel_LOGO/Language").transform.GetComponent().value; print("v==="+v); _G.L = v+1; } }