void Awake() { colorMenu.SetActive(false); indexFractionArea = -1; bookmark = GameObject.FindGameObjectWithTag("Bookmark"); bookmark.SetActive(false); Cursor.SetCursor(MouseIconNo, Vector2.zero, CursorMode.Auto); mainCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Camera>(); startingPoints.Add(SBSVector3.zero); startingPoints.Add(SBSVector3.left); startingPoints.Add(SBSVector3.right); startingPoints.Add(SBSVector3.up); startingPoints.Add(SBSVector3.down); lastOperation = FractionsOperations.SUBTRACTION; localizationUtils = GameObject.FindGameObjectWithTag("LevelRoot").GetComponent<LocalizationUtils>(); Localizations.Instance.mcLanguage = "en"; //if (Application.srcValue.Contains("language=de")) if (ExternalEventsManager.Instance.embeddingVariables.ContainsKey("language")) { if (ExternalEventsManager.Instance.embeddingVariables["language"].Equals("de")) Localizations.Instance.mcLanguage = "de"; else if (ExternalEventsManager.Instance.embeddingVariables["language"].Equals("es")) Localizations.Instance.mcLanguage = "es"; } if (ExternalEventsManager.Instance.embeddingVariables.ContainsKey("username")) { if ("" != ExternalEventsManager.Instance.embeddingVariables["username"]) { user = ExternalEventsManager.Instance.embeddingVariables["username"]; isLogged = true; isStudent = true; } else { isLogged = false; } } if (ExternalEventsManager.Instance.embeddingVariables.ContainsKey("tip")) { if ("" != ExternalEventsManager.Instance.embeddingVariables["tip"]) { fileAddress = ExternalEventsManager.Instance.embeddingVariables["tip"]; istaskDefined = true; } else { istaskDefined = false; } } if (ExternalEventsManager.Instance.embeddingVariables.ContainsKey("showStartPage")) { if ("" != ExternalEventsManager.Instance.embeddingVariables["showStartPage"]) { if (ExternalEventsManager.Instance.embeddingVariables["showStartPage"] == "true") showStartPage = true; else showStartPage = false; } } /* mappingInitConfiguration = new List<Configuration>(); Configuration tmp = new Configuration(); foreach(Button bt in initialConfigurationList) { tmp.operation = bt.gameObject; tmp.isActive = true; mappingInitConfiguration.Add(tmp); }*/ /*CHEAT*/ // symbol.GetComponent<UIButton>().DisableBtn(false); saveAs.GetComponent<UIButton>().DisableBtn(false); saveNew.GetComponent<UIButton>().DisableBtn(false); buttonDictionary = new Dictionary<string, Button>(); foreach (Button bt in barTool) { buttonDictionary.Add(bt.name, bt); } foreach (Button bt in barOperations) { buttonDictionary.Add(bt.name, bt); } foreach (Button bt in contextMenu.GetComponentsInChildren<Button>()) { buttonDictionary.Add(bt.name, bt); } foreach (Button bt in contextMenuEquivalence.GetComponentsInChildren<Button>()) { buttonDictionary.Add(bt.name, bt); } foreach (Button bt in actionMenu.GetComponentsInChildren<Button>()) { buttonDictionary.Add(bt.name, bt); } //initialConfigurationList = new Dictionary<string, Button>(); contextMenu.SetActive(false); contextMenuEquivalence.SetActive(false); actionMenu.SetActive(false); isMenuActive = false; Localizations.Instance.initialize(); Localizations.Instance.listeners.Add(gameObject); Localizations.Instance.listeners.Add(localizationUtils.gameObject); localizationUtils.AddTranslationText(bookmark.GetComponentInChildren<Text>(), "{designer_mode}"); localizationUtils.AddTranslationText(visitedTask, "{visited_task}"); localizationUtils.AddTranslationText(lockedTask, "{locked_task}"); localizationUtils.AddTranslationText(newTask, "{new_task}"); initializeHighlightUIElement(); indexHighlight = 0; actionsPopupBG = GameObject.FindGameObjectWithTag("PopupBG"); actionsPopupBG.SetActive(false); #if UNITY_ANDROID || UNITY_IPHONE zoomController.GetComponent<Zoom>().HideUI(); #endif //if(isStudent) /*CHEAT*/ /* isLogged = false; istaskDefined = false;*/ }