Ejemplo n.º 1
0
 void Awake()
 {
     ph = new PauseHandle(OnPause);
     Setup();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks if the execution should be paused or canceled.
 /// </summary>
 public void CheckPauseAndCancel()
 {
     AbortIfCancelled();
     PauseHandle.WaitOne();
 }