Closed cpsaez closed 4 years ago
Hi
You do not pass an argument into the Fire
method. "Hola"
is used as the event to be triggered.
Try fsm.Fire("Hola", "myArgument")
and you should get "myArgument"
passed to MyMethod
.
Let me know if that works for you.
As a side note: I prefer using enums for states and events as long as they do not have to be dynamically specified. Makes the code a bit cleaner.
Hi there.
Congrats for your great work here. I have an issue but maybe Im doing something wrong.
Im trying to access the Fire event content inside the execute method, but I'm always receiving null. I expected to see "hola" on Console. Is that the desired behavior?