public override void OnEnter() { UIMenu.Instance.HideMenu(); UIMenu.Instance.OnboardingBlock = true; string message = LanguageManager.Instance.GetTextValue("TUTORIAL_POPUP_BACK_TO_RMS"); PopupHelper.Show(message, () => {}, StateMachine.ImageContainerCommon.Rms); }
public override void OnEnter() { string message = LanguageManager.Instance.GetTextValue("TUTORIAL_POPUP_HAPPY_END"); PopupHelper.Show(message, () => { StateMachine.ChangeState(new OffState(StateMachine)); }, StateMachine.ImageContainerCommon.Fin, true); _fireWork = Object.Instantiate(StateMachine.Firework, GameObjects.Instance.Head); _fireWork.transform.SetParent(null); }
public override void OnEnter() { UIMenu.Instance.OnboardingBlock = true; PopupHelper.Show(LanguageManager.Instance.GetTextValue("TUTORIAL_POPUP_MOVING"), null, StateMachine.ImageContainer.Teleport); string teleport = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_MOVING"); TooltipManager.ShowControllerTooltip(teleport, ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Touchpad); InputAdapter.Instance.PointerController.IsMenuOpened = false; // We need to test what GO was taking the teleportarea tag in build var go = GameObject.FindWithTag("TeleportArea"); if (go != null) { Debug.Log("!!!!!!!!!!!!!" + go.name); } GameObject teleportArea = GameObject.Find("/_Level/Floor_teleport_zone"); if (teleportArea != null) { teleportArea.layer = 5; Collider colliderTeleport = teleportArea.GetComponentInChildren <Collider>(); if (colliderTeleport != null) { InputAdapter.Instance.PlayerController.PlayerTeleported += position => { _conditionsMoving = true; TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Touchpad); }; } else { Debug.LogError("TeleportArea collider not found!"); } } else { Debug.LogError("TeleportArea not found!"); } }
public override void OnEnter() { PopupHelper.Show(LanguageManager.Instance.GetTextValue("ONBOARDING_POPUP_PREVIEW_MENU_CHANGE_MODE"), null, StateMachine.ImageContainer.Eye); string openMenu = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_OPEN_MENU"); TooltipManager.ShowControllerTooltip(openMenu, ControllerTooltipManager.TooltipControllers.Left, ControllerTooltipManager.TooltipButtons.ButtonTwo); StateMachine.UiMenu.OnMenuOpened += () => { _conditionsMenuOpening = true; }; }
public override void OnEnter() { UIMenu.Instance.OnboardingBlock = true; string message = LanguageManager.Instance.GetTextValue("TUTORIAL_POPUP_LOGIC_START"); PopupHelper.Show(message, () => { InputAdapter.Instance.PointerController.IsMenuOpened = false; }, StateMachine.ImageContainer.Use, true); string trigger = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOL_TIP_BUTTON_USE"); TooltipManager.ShowControllerTooltip(trigger, ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Trigger); string button = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOL_TIP_PRESS_ME"); TooltipManager.SetObjectTooltip(StateMachine.ButtonGameObject, button); }
public override void OnEnter() { UIMenu.Instance.OnboardingBlock = true; PopupHelper.Show(LanguageManager.Instance.GetTextValue("TUTORIAL_POPUP_HELLO"), () => { _conditionsHello = true; TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Trigger); }, StateMachine.ImageContainerCommon.Hello, true, LanguageManager.Instance.GetTextValue("ONBOARDING_POPUP_START_BUTTON")); string pressOk = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_POINTER_CLICK"); pressOk = string.Format(pressOk, LanguageManager.Instance.GetTextValue("ONBOARDING_POPUP_START_BUTTON")); TooltipManager.ShowControllerTooltip(pressOk, ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Trigger); }