I have a very simple case:
State 1 (start state)
No actions
Transition (FINISHED) to State 2
State 2
Contains a Wait action with time of 1 second and Finish Event set to WAIT_FINISHED
Transition (WAIT_FINISHED) to State 1
For me, this VERY SIMPLE case DOES NOT WORK. It loops around once, but not forever like it should. If I used the FINISHED event, instead of my custom WAIT_FINISHED event, then it works ok, but this isn't what I want.
Also, if I comment out a line in the OnUpdate of Wait.cs :
if (timer >= time.Value) {
Fsm.Event(finishEvent);
//Finish();
}
... then it works ok.
Does this problem happen for others too? Or am I just missing something with the way this should work?