Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Nitrohex on December 22, 2013, 12:41:49 AM

Title: Event/Message Listener?
Post by: Nitrohex on December 22, 2013, 12:41:49 AM
I was wondering is there a way for an FSM to listen for an event or message from outside framework such as Easy Touch?

I found some related topics on this but no solution.

Thanks in advance
Title: Re: Event/Message Listener?
Post by: jeanfabre on December 26, 2013, 09:13:08 AM
Hi,

I would study how I made it for Photon, or NGUI. it's using a monobehavior that implements the messages, and then forward it to playmaker as an event.

Also, study input.touch package is you have input.touches, it will give you a very good base if easy touch is using delegates.

so in essence, the key is to forward the event, not "listen" to it, you "listen" to it with a normal script that in turn forward to PlayMaker.

bye,

 Jean
Title: Re: Event/Message Listener?
Post by: Nitrohex on December 26, 2013, 02:30:10 PM
Thanks Jean,

I will study these concepts, and see if i can come up with a solution, if not be sure i will write a few newbie questions again  :-[  :)

Thanks again.