예제 #1
0
 public void RaiseFinishEvent(string step, string message)
 {
     FinishHandler?.Invoke(this, new WorkItemEventArgs
     {
         Id           = Id,
         WorkflowId   = WorkflowId,
         Step         = step,
         ErrorMessage = message
     });
 }
예제 #2
0
    private IEnumerator ExecuteAsync(FinishHandler OnFinish)
    {
        ExuteStarted?.Invoke();
        yield return(StartCoroutine(OnExecuteAsync()));

        if (Next != null)
        {
            Next.Execute(OnFinish);
        }
        else
        {
            OnFinish?.Invoke();
        }
        ExecuteEnded?.Invoke();
    }
예제 #3
0
 private void Finish()
 {
     OnSetScore?.Invoke();
     OnFinish?.Invoke();
 }