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); }
protected override void OnCreation() { leafNode = new TreeServiceLeafNode(null, null); thisTreeNode = leafNode; }