Exemplo n.º 1
0
 /// <summary>
 /// Triggers Defined Event units listening for the passed eventData on the target gameobject.
 /// This is the scripting quivalent to the Trigger Defined Event unit.
 /// </summary>
 /// <param name="target">The game object that event units should listen on to receive the event.</param>
 /// <param name="eventData">This is a filled object of the type of event you want to trigger.</param>
 public static void Trigger(GameObject target, object eventData)
 {
     DefinedEventUnit.Trigger(target, eventData);
 }