public bool Done(bool force = false) { if (Priority == CoroutinePriority.Critical) { return(false); } Running = false; IsDone = true; WhenDone?.Invoke(this, EventArgs.Empty); return(IsDone); }
public void DoWhenFinished() { WhenDone?.Invoke(this, null); }