I'm a little confused I'm using an fsm on a GameObject in order to send an event if that object gets selected.
Mouse Down or Touch will trigger the selected.
The first state just stores the owner of the fsm in a gameObject variable.
The second state waits for a mouse down.
The third state uses a mousePick and stores the object selected in a separate variable and then compares the two variables. If they are equal it goes to the 4th state. If not, it goes back to the 2nd state and waits for another input.
In the 4th state I send a message to my external script which does some fun stuff.
The PROBLEM I am having is that the mousePick doesn't seem to work. I'm never able to get the compare to work. There is a collider on my gameObject, but I swear I can't get this seemingly simple behavior to work. I just want to send a message from a selected game object.
Any help would be great. I'm baffled by this.
thanks,
here pictures of the states of the fsm