private void Update() { if (Input.GetKeyUp(27)) { if ((!string.IsNullOrEmpty(MonoBehaviourSingleton <UserInfoManager> .I.userStatus.tutorialBit) && !MonoBehaviourSingleton <UserInfoManager> .I.CheckTutorialBit(TUTORIAL_MENU_BIT.SKILL_EQUIP)) || !TutorialStep.HasAllTutorialCompleted()) { if (MonoBehaviourSingleton <GameSceneManager> .IsValid()) { string currentSectionName = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName(); if (!string.IsNullOrEmpty(currentSectionName) && MonoBehaviourSingleton <ToastManager> .IsValid() && !MonoBehaviourSingleton <ToastManager> .I.IsShowingDialog()) { string text = (!(MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSceneName() == "TitleScene")) ? StringTable.Get(STRING_CATEGORY.TEXT_SCRIPT, 36u) : "You are unable to go back to Town Scene during this Tutorial Mission"; ToastManager.PushOpen(text, 1.8f); } } } else if (IsEnableTutorialMessage()) { if (tutorialMessage.IsOnlyShowImage() && TutorialMessage.GetCursor(0) == null) { tutorialMessage.TutorialClose(); } } else if (!(tutorialMessage != null) || !(TutorialMessage.GetCursor(0) != null)) { ProcessBackKey(); } } }