IEnumerator UpdateGraph() { while (status == Status.Running) { currentInstance.UpdateGraph(); yield return(null); } }
protected override Status OnExecute(Component agent, IBlackboard blackboard) { if (flowScript == null) { return(Status.Failure); } if (status == Status.Resting) { currentInstance = CheckInstance(); status = Status.Running; currentInstance.StartGraph(agent, blackboard, false, OnFlowScriptFinished); } if (status == Status.Running) { currentInstance.UpdateGraph(); } return(status); }
void OnUpdate() { currentInstance.UpdateGraph(); }
protected override void OnUpdate() { currentInstance.UpdateGraph(); }