diff options
Diffstat (limited to 'examples/particle_system/main.cpp')
-rw-r--r-- | examples/particle_system/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/particle_system/main.cpp b/examples/particle_system/main.cpp index 0b7e191..f37027b 100644 --- a/examples/particle_system/main.cpp +++ b/examples/particle_system/main.cpp @@ -26,6 +26,7 @@ void onLoad() /*sm.addTransitionb("Empty", "Idle", "run", StateMachine::BOOL_IS, true); sm.addTransitionb("Idle", "Run", "run", StateMachine::BOOL_IS, false); */ + sm.addTransition("Run", "Idle", StateMachine::Conditions().andf()); sm.addTransitiont("Empty", "Idle", "run"); sm.addTransitiont("Idle", "Run", "run"); sm.setEnterListener([](const string& state, void* p) { |