예제 #1
0
        public override void Show()
        {
            if (IsShow)
            {
                return;
            }
            Paused.TransitionTo(0.001f);
            var tempMenuItems = System.Enum.GetNames(typeof(MenuPauseItems));

            Interface.InterfaceResources.MainPanel.gameObject.SetActive(true);
            Time.timeScale = 0;
            CreateMenu(tempMenuItems);
            PlayerInputController.enabled = false;
            IsShow = true;
        }
예제 #2
0
    public override void Show()
    {
        if (IsShow)
        {
            return;
        }

        Paused.TransitionTo(0.001f);

        _pauseMenu.gameObject.SetActive(true);
        _gamePanel.gameObject.SetActive(false);

        Time.timeScale = 0;

        CharController.enabled = false;
        ServiceLocator.Resolve <InputController>().Off();
        ServiceLocator.Resolve <SelectionController>().Off();

        Cursor.lockState = CursorLockMode.None;
        Cursor.visible   = true;

        IsShow = true;
    }