playMaker

Author Topic: Listen for a PlayMaker global event in a script  (Read 761 times)

Micktu

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Listen for a PlayMaker global event in a script
« on: January 05, 2016, 05:39:19 AM »
Just as the subject says: how do you subscribe to a global event in a script?

So you don't have to create "proxy" FSM listeners/invokers.

phannDOTde

  • Full Member
  • ***
  • Posts: 233
    • View Profile
    • Peter Hann .de
Re: Listen for a PlayMaker global event in a script
« Reply #1 on: January 06, 2016, 05:30:30 AM »
You should check the basic Tutorials on the YT channel

1. right click on an state
2. add global transition

make sure your event is marked as a global event to be send between gameobjects

Micktu

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Listen for a PlayMaker global event in a script
« Reply #2 on: January 06, 2016, 05:32:38 AM »
You should check the basic Tutorials on the YT channel

1. right click on an state
2. add global transition

make sure your event is marked as a global event to be send between gameobjects

That was not the question however - it's how to respond to PlayMaker events from MonoBehaviors and plain C# objects.

phannDOTde

  • Full Member
  • ***
  • Posts: 233
    • View Profile
    • Peter Hann .de
Re: Listen for a PlayMaker global event in a script
« Reply #3 on: January 06, 2016, 10:09:09 AM »
Oh sorry - misunderstood you. Can't help there sorry.