コード例 #1
0
 void IUIScreenController.CloseScreen(ScreenType.ScreenType screenType)
 {
     CloseScreenRequest?.Invoke(screenType);
     if (_RegisteredScreens.Count(x => x.Active) != 0)
     {
         return;
     }
     _Input.SetGameplayMap();
     ScreenPointer.SetEnabled(true);
     PauseGame.Unpause();
 }
コード例 #2
0
        void IUIScreenController.OpenScreen(ScreenType.ScreenType screenType)
        {
            PauseGame.Pause(true);
            _Input.SetUIMap();
            OpenScreenRequest?.Invoke(screenType);

            if (!_OpenScreenStack.Contains(screenType))
            {
                _OpenScreenStack.Push(screenType);
            }

            ScreenPointer.SetEnabled(false);
        }