playMaker

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

Micktu

  • Playmaker Newbie
  • *
  • Posts: 4
Listen for a PlayMaker global event in a script
« on: January 05, 2016, 07: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: 237
    • Peter Hann .de
Re: Listen for a PlayMaker global event in a script
« Reply #1 on: January 06, 2016, 07: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
Re: Listen for a PlayMaker global event in a script
« Reply #2 on: January 06, 2016, 07: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: 237
    • Peter Hann .de
Re: Listen for a PlayMaker global event in a script
« Reply #3 on: January 06, 2016, 12:09:09 PM »
Oh sorry - misunderstood you. Can't help there sorry.