public void NoPressed() { if (state == QUIT_MENU_STATE.OnQuit) { inputMgr.UnlockKey(); uiGame.playerCam.ToggleCursorLock(); uiGame.ToggleQuitMenu(); uiGame.ToggleCrosshair(); uiGame.TogglePlayerInfo(); TimeManager.Instance.State = TimeManager.StateGame.Running; } else { if (returnOnMainMenu) { PlayerPrefs.DeleteKey("LastReachedFloor"); GameManager.Instance.LoadMainMenu(); } else { GameManager.Instance.Quit(); } } }
public void QuitSpellsInterface() { inputMgr.UnlockKey(); uiGame.TogglePlayerInfo(); uiGame.ToggleCrosshair(); uiGame.playerCam.ToggleCursorLock(); uiGame.ToggleSpellWindow(); TimeManager.Instance.State = TimeManager.StateGame.Running; }
public void CharacPressed() { uiGame.TogglePlayerInfo(); uiGame.ToggleCharacWindow(); inputMgr.LockCharacMenu(); }