コード例 #1
0
        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;
            }));
        }
コード例 #2
0
 public new bool GetConditionExec()
 {
     return(IsDoneDelegate != null && IsDoneDelegate.Invoke(null) || ScriptManager.GetCondition(Condition).Invoke());
 }