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