public void PauseGame() { PauseMenuManager.ShowMenu(); Cursor.lockState = CursorLockMode.Confined; Cursor.visible = true; EscapeIsLocked = true; StartCoroutine(MenuLock(0.1f)); }
private void ShowPauseMenu() { try { _pauseMenuManager.ShowMenu(); } catch (Exception e) { } }
private void ShowMenu() { try { _pauseMenuManager.ShowMenu(); } catch (Exception e) { Misc.Logger.Error("Unable to show menu! Exception: " + e); } }
static bool Prefix(StandardLevelGameplayManager __instance, PauseMenuManager ____pauseMenuManager) { try { if (Client.Instance.connected) { ____pauseMenuManager.ShowMenu(); return(false); } return(true); } catch (Exception e) { Plugin.log.Error("Exception in Harmony patch StandardLevelGameplayManager.Pause: " + e); return(true); } }