public void OnGamePause() { State.value = PlayState.Paused; GamePauseEvent?.Invoke(); }
private static void PauseGameplay(bool state) { GamePause.Invoke(!state); Time.timeScale = state ? 0.0f : 1.0f; }