private void Run(Flow flow) { if (flow.enableDebug) { var editorData = flow.stack.GetElementDebugData <IUnitDebugData>(this); editorData.lastInvokeFrame = EditorTimeBinding.frame; editorData.lastInvokeTime = EditorTimeBinding.time; } if (coroutine) { flow.StartCoroutine(trigger, flow.stack.GetElementData <Data>(this).activeCoroutines); } else { flow.Run(trigger); } }