Hi,
ok, few things:
- in your logic, you are going to send an event every frame, this is not ideal, what you likely want is to send event when the value changed. so you need to cache the value and only send an event when you detect a change.
then, to make sure your code is working, use first an FsmBool where you store the value, so that you can watch it in the action as it plays, once you know you are getting the right value you can send fire events.
Bye,
Jean