playMaker

Author Topic: Event/Message Listener?  (Read 3114 times)

Nitrohex

  • Junior Playmaker
  • **
  • Posts: 50
Event/Message Listener?
« 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
Sign Up Now @ StartApp.com

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Event/Message Listener?
« Reply #1 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

Nitrohex

  • Junior Playmaker
  • **
  • Posts: 50
Re: Event/Message Listener?
« Reply #2 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.

Sign Up Now @ StartApp.com