Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Leaf : Node {
- /// Declare the delegate, LeafNode will have a reference to the our script's method, to invoke in Run() func
- public delegate NodeState LeafNodeDelegate();
- /// Reference to our function, Will be set by framework
- public LeafNodeDelegate function;
- public override NodeState Run() {
- return function();
- }
- }
Add Comment
Please, Sign In to add comment