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