Ejemplo n.º 1
0
        public override TreeBaseNode WalkGraphToCreateTree(BehaviourTree.BehaviourTree tree, Context currentContext)
        {
            if (AttributeCache <Service> .TryGetCachedMemberViaLookupValue(service.targetMethod,
                                                                           out var method))
            {
                var node = new TreeServiceLeafNode(tree, currentContext)
                {
                    targetMethod = method as MethodInfo
                };
                return(node);
            }

            Debug.LogError("Unable to recover cached member lookup value for service: " + service.targetMethod);
            return(null);
        }
Ejemplo n.º 2
0
 protected override void OnCreation()
 {
     leafNode     = new TreeServiceLeafNode(null, null);
     thisTreeNode = leafNode;
 }