public void TogglePause(bool enable, bool isEscape = false) { if (!pause) { return; } // TODO: Complete this if (enable && isEscape) { pause.EscapeMenu(); } paused = enable; Time.timeScale = paused ? 0 : 1; }