protected override Composite CreateBehavior() { return(new Action(ret => { if (IsDone) { return RunStatus.Success; } if (Action != null) { if (Action.Invoke(null)) { _isDone = true; return RunStatus.Success; } return RunStatus.Running; } return RunStatus.Success; })); }
public new bool GetConditionExec() { return(IsDoneDelegate != null && IsDoneDelegate.Invoke(null) || ScriptManager.GetCondition(Condition).Invoke()); }