Esempio n. 1
0
 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);
        }
Esempio n. 3
0
 void OnUpdate()
 {
     currentInstance.UpdateGraph();
 }
 protected override void OnUpdate()
 {
     currentInstance.UpdateGraph();
 }