playMaker

Author Topic: How to call a public static event from playmaker  (Read 1104 times)

mn6000

  • Playmaker Newbie
  • *
  • Posts: 17
How to call a public static event from playmaker
« on: March 24, 2017, 07:40:49 PM »

public delegate void UpdateGameObject();
public static event UpdateGameObject OnMove;

Hi, I have an event above which I want called by playmaker.

I'm looking at SendEvent Action and it wants me to specify a gameobject and a playmaker event.

I'm a little confused by this since I only want to call OnMove().

Do I want to use SendEvent or is there another action I should use?

Thank you.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to call a public static event from playmaker
« Reply #1 on: April 10, 2017, 02:23:28 AM »
Hi,

 For this you'll need to write a dedicated actions that access your onMove delegate.

If you are not comfortable with writing an actions, I can do it for you so that you have a base, it's not complicated.

 Bye,

 Jean