Guest User

Untitled

a guest
May 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class Leaf : Node {
  2. /// Declare the delegate, LeafNode will have a reference to the our script's method, to invoke in Run() func
  3. public delegate NodeState LeafNodeDelegate();
  4.  
  5. /// Reference to our function, Will be set by framework
  6. public LeafNodeDelegate function;
  7.  
  8. public override NodeState Run() {
  9. return function();
  10. }
  11. }
Add Comment
Please, Sign In to add comment