예제 #1
0
 /// <summary> LateUpdate is called every frame, after all Update functions have been called and if this graph has been loaded by a controller </summary>
 public virtual void LateUpdate()
 {
     if (ActiveNode != null && ActiveNode.UseLateUpdate)
     {
         ActiveNode.OnLateUpdate();
     }
     if (ActiveSubGraph != null)
     {
         ActiveSubGraph.LateUpdate();
     }
     foreach (Node node in GlobalNodes)
     {
         if (node.UseLateUpdate)
         {
             node.OnLateUpdate();
         }
     }
 }