Closed IkonOne closed 8 years ago
When you do state.addInstance()
you get link to StateSystemMapping
object, it has withPriority()
method to specify priority for the system.
So you can do
state.addInstance(new PhysicSystem()).withPriority(1)
.addInstance(new CameraSystem()).withPriority(2)
.addInstance(new PreUpdateSystem()).withPriority(0);
Ah yes. Thank you. I'll just close this and walk away like nothing happened...
Don't forget to close other related issues!
The system 'add' functions in EngineState do not allow the System priority to be specified.
https://github.com/nadako/Ash-Haxe/blob/master/src/ash/fsm/EngineStateMachine.hx