I'm using an external behavior tree to replicate a sequence of tasks I am repeating at multiple places throughout my tree.
The tree has a number of variables from the parent tree it needs to know about. Things like NavMeshAgent speed, angular speed, destination, etc. but also others.
It works if I pass them as parameters. But as I said, I'm using this reference in multiple places and I want to avoid that I forget passing one variable here or there and it'll be hell to debug.
Is there a way for an external behavior tree to simply inherit or access all of the variables that the tree it's referenced from uses? Or some other trick that I'm missing?
The tree has a number of variables from the parent tree it needs to know about. Things like NavMeshAgent speed, angular speed, destination, etc. but also others.
It works if I pass them as parameters. But as I said, I'm using this reference in multiple places and I want to avoid that I forget passing one variable here or there and it'll be hell to debug.
Is there a way for an external behavior tree to simply inherit or access all of the variables that the tree it's referenced from uses? Or some other trick that I'm missing?