Hi, we've just bought PlayMaker few days ago (fantastic tool btw), and we are having a little problem with the custom events.
We haven't found any mention to it, so here is the case:
I have simple FSM (3 states) which one of the transitions is done by firing a custom event (say "MYEVENT"). Something like this:
State A (MYEVENT)-> State B (FINISHED)-> State C
I raise this custom event by code, like this
//method's code
...
//fsm is a PlayMakerFSM field on a MonoBehaviour component
fsm.Fsm.Event("MYEVENT");
But the change of the state never happens, so i have to put a "patch" in the MonoBehaviour's Update that seems like...
//...somewhere in the Update
if(fsm.ActiveStateName == "State A" && myCustomEventIsAlreadyFired)
{
//relaunch the event
fsm.Fsm.Event("MYEVENT");
}
And with that, the transition is done.
I've got the impression that the first time MYEVENT is rised, is like the event was "cached", and the second time is when its really fired.
The complete code is very simple and the fsm is alright (with the "patch" it works perfectly), so, am i doing something weird? have the customs events some restrictions that the "built-in"s not? is there any way to avoid that ugly "if"?
Thanks in advance, and thanks for this useful tool.
PD: Apologize for my bad english (is not my mother tongue), and sorry if i sound disrespectful.