private void OnEnable() { Time.timeScale = 1f; PlayerGameOverEvent += TogglePause; PlayerOpenInventoryEvent += TogglePause; PlayerOpenMenuEvent += TogglePause; }
private void OnDisable() { PlayerGameOverEvent -= TogglePause; PlayerOpenInventoryEvent -= TogglePause; PlayerOpenMenuEvent -= TogglePause; }