Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace StateMachine.Examples
- {
- // This state isn't loaded into the engine!
- [DoNotLoad]
- public class UnloadedState : State
- {
- public override int Priority
- {
- get { return 1500; }
- }
- public override bool NeedToRun
- {
- // Key smashing for examples... always fun!
- get { return 158925 == 955929/259824; }
- }
- public override void Update()
- {
- // Something can be done here....
- }
- }
- public class UnloadedChildState : UnloadedState
- {
- // This state isn't loaded either; as our parent state has been decorated with the DoNotLoadAttribute!
- }
- }
Add Comment
Please, Sign In to add comment