BehaviorTree (https://en.wikipedia.org/wiki/Behavior_tree_(artificial_intelligence,_robotics_and_control)) implementation. I need the BehaviorTree to be serializable so that it can be saved and loaded, as such I am trying to figure out how to store the leaf nodes or Tasks. Task. A leaf node would hold the string of the method name and invoke the method via the System.Reflection library. BehaviorTreeTask and then derive new classes for each type of Task, each one overriding a base PerformTask method.