private void UpdateInputs()
    {
        if (MainLevel.Instance.IsMoviePlaying())
        {
            return;
        }
        bool flag = Input.GetKeyDown(KeyCode.Escape) || (GreenHellGame.IsPadControllerActive() && Input.GetKeyDown(InputHelpers.PadButton.Start.KeyFromPad()));

        if (flag && this.CanShowMenuInGame())
        {
            this.ShowScreen(typeof(MenuInGame));
        }
        else if (this.m_CurrentScreen)
        {
            if (flag)
            {
                if (this.m_CurrentScreen.GetType() == typeof(MenuInGame))
                {
                    this.HideMenu();
                }
                else
                {
                    this.m_CurrentScreen.OnBack();
                }
            }
            else if (Input.GetKeyDown(KeyCode.Tab) && this.m_CurrentScreen.GetType() == typeof(MenuInGame))
            {
                this.HideMenu();
            }
        }
        else if (!MainLevel.Instance.IsPause() && Input.anyKeyDown)
        {
            foreach (Type type in this.m_Screens.Keys)
            {
                MenuScreen menuScreen = this.m_Screens[type];
                if (menuScreen.GetShortcutKey() != KeyCode.None && Input.GetKeyDown(menuScreen.GetShortcutKey()))
                {
                    this.ShowScreen(type);
                    break;
                }
            }
        }
        if (GreenHellGame.DEBUG && !Input.GetKey(KeyCode.LeftControl))
        {
            if (Input.GetKeyDown(KeyCode.F1))
            {
                if (!Input.GetKey(KeyCode.RightControl))
                {
                    this.ShowScreen(typeof(MenuDebugItem));
                    return;
                }
                this.ShowScreen(typeof(MenuDebugSounds));
                return;
            }
            else if (Input.GetKeyDown(KeyCode.F2))
            {
                if (!Input.GetKey(KeyCode.RightControl))
                {
                    this.ShowScreen(typeof(MenuDebugScenario));
                    return;
                }
                this.ShowScreen(typeof(MenuDebugCamera));
                return;
            }
            else
            {
                if (Input.GetKeyDown(KeyCode.F3))
                {
                    this.ShowScreen(typeof(MenuDebugSpawners));
                    return;
                }
                if (Input.GetKeyDown(KeyCode.F4))
                {
                    this.ShowScreen(typeof(MenuDebugSkills));
                    return;
                }
                if (Input.GetKeyDown(KeyCode.F5))
                {
                    this.ShowScreen(typeof(MenuDebugAI));
                    return;
                }
                if (Input.GetKeyDown(KeyCode.F6))
                {
                    this.ShowScreen(typeof(MenuDebugWounds));
                    return;
                }
                if (Input.GetKeyDown(KeyCode.F7))
                {
                    this.ShowScreen(typeof(MenuDebugDialogs));
                    return;
                }
                if (Input.GetKeyDown(KeyCode.F9))
                {
                    this.ShowScreen(typeof(MenuDebugLog));
                    return;
                }
                if (Input.GetKeyDown(KeyCode.F11))
                {
                    this.ShowScreen(typeof(MenuDebugScenarioDialogs));
                }
            }
        }
    }