private void TogglePause(bool newState)
 {
     TimeModifier.TimeScale = newState ? 0f : 1f;
     OnPauseToggled?.Invoke(newState);
     isPaused = newState;
 }
Ejemplo n.º 2
0
 public void TogglePause()
 {
     Canvas.SetActive(!Canvas.activeSelf);
     OnPauseToggled?.Invoke();
 }