void IUIScreenController.CloseScreen(ScreenType.ScreenType screenType) { CloseScreenRequest?.Invoke(screenType); if (_RegisteredScreens.Count(x => x.Active) != 0) { return; } _Input.SetGameplayMap(); ScreenPointer.SetEnabled(true); PauseGame.Unpause(); }
void IUIScreenController.OpenScreen(ScreenType.ScreenType screenType) { PauseGame.Pause(true); _Input.SetUIMap(); OpenScreenRequest?.Invoke(screenType); if (!_OpenScreenStack.Contains(screenType)) { _OpenScreenStack.Push(screenType); } ScreenPointer.SetEnabled(false); }