playMaker

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

Nitrohex

  • Junior Playmaker
  • **
  • Posts: 50
    • View Profile
Event/Message Listener?
« on: December 21, 2013, 10:41:49 PM »
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: 14237
  • Official Playmaker Support
    • View Profile
Re: Event/Message Listener?
« Reply #1 on: December 26, 2013, 07: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
    • View Profile
Re: Event/Message Listener?
« Reply #2 on: December 26, 2013, 12: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