public void RaiseFinishEvent(string step, string message) { FinishHandler?.Invoke(this, new WorkItemEventArgs { Id = Id, WorkflowId = WorkflowId, Step = step, ErrorMessage = message }); }
private IEnumerator ExecuteAsync(FinishHandler OnFinish) { ExuteStarted?.Invoke(); yield return(StartCoroutine(OnExecuteAsync())); if (Next != null) { Next.Execute(OnFinish); } else { OnFinish?.Invoke(); } ExecuteEnded?.Invoke(); }
private void Finish() { OnSetScore?.Invoke(); OnFinish?.Invoke(); }