Guest User

Untitled

a guest
Jul 16th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. namespace StateMachine.Examples
  2. {
  3. // This state isn't loaded into the engine!
  4. [DoNotLoad]
  5. public class UnloadedState : State
  6. {
  7. public override int Priority
  8. {
  9. get { return 1500; }
  10. }
  11.  
  12. public override bool NeedToRun
  13. {
  14. // Key smashing for examples... always fun!
  15. get { return 158925 == 955929/259824; }
  16. }
  17.  
  18. public override void Update()
  19. {
  20. // Something can be done here....
  21. }
  22. }
  23.  
  24. public class UnloadedChildState : UnloadedState
  25. {
  26. // This state isn't loaded either; as our parent state has been decorated with the DoNotLoadAttribute!
  27. }
  28. }
Add Comment
Please, Sign In to add comment