private void IntroGUIManagment_OnContinueButtonClick(string itemName) { if (TranslationManager.GetLocalizationDictionary().ContainsKey(itemName)) { GUITextComponents.Where(x => x.transform.name.Equals("IntroPage1Label")).FirstOrDefault().text = TranslationManager .GetLocalizationDictionary()[itemName]; } }
private void GlobalTimer_OnCountDownSecondValueChange() { CountDownTextLabel.text = GlobalTimer.SecondLeftToStart.ToString(); if (GlobalTimer.SecondLeftToStart == 0) { CountDownTextLabel.text = TranslationManager.GetLocalizationDictionary()["CountdownEndInfoTextLabel"]; Invoke("DisableCountDownTextLabel", 1f); } }
private void SetSceneTranslation() { foreach (Text textLabel in menuTextItems) { if (TranslationManager.GetLocalizationDictionary().ContainsKey(textLabel.name)) { textLabel.text = TranslationManager.GetLocalizationDictionary()[textLabel.name]; } } }
private void OnTriggerStay(Collider hitCollider) { if (hitCollider.CompareTag("Player") && IsOpenable) { objectHintText.text = ShowHint ? TranslationManager.GetLocalizationDictionary()["DoorHintMeshTextLabel"] : string.Empty; if (Input.GetKey("f")) { OpenDoor(DoorSide); } } }