void HideAllUIScreens() { completionScreen.Hide(); map.Hide(); pauseScreen.Hide(); optionsScreen.Hide(); }
private void OnGameStateChanged(GameStates state) { Cursor.lockState = state == GameStates.Game ? CursorLockMode.Locked : CursorLockMode.None; aboutScreen.Hide(); optionsScreen.Hide(); effectsScreen.SetState(state != GameStates.MainMenu && state != GameStates.Loading); loadingScreen.SetState(state == GameStates.Loading); gameScreen.SetState(state == GameStates.Game); JournalScreen.SetState(state == GameStates.Notes); pageScreen.SetState(state == GameStates.ReadNote); inventorySceen.SetState(state == GameStates.Inventory); containerScreen.SetState(state == GameStates.Container); pauseScreen.SetState(state == GameStates.Pause); mainMenuScreen.SetState(state == GameStates.MainMenu); actionsScreen.SetState(state == GameStates.ActionsList); deathScreen.SetState(state == GameStates.Death); gameComplete.SetState(state == GameStates.GameComplete); passwordScreen.SetState(state == GameStates.PasswordInput); }