Example #1
0
 protected override void OnEnter(Actor actor, Blackboard local)
 {
     if (m_subtree == null)
     {
         m_subtree = BehaviorCache.GetBehavior(m_id);
     }
 }
Example #2
0
 public void Execute(string behavior)
 {
     Behavior = BehaviorCache.GetBehavior(behavior);
     Result   = BehaviorTree.ResultCode.Running;
 }