Assets/Scripts/System/EventProcessor.cs
/// <summary>
/// Calls all listener functions for the specified event.
/// </summary>
/// <param name="eventName">The event you are trying to raise.</param>
/// <param name="param">Additional data to pass along to the callbacks. If not applicable, pass null.</param>
Calls all listener functions for the specified event.
Calls all listener functions for the specified event .
public void RaiseEvent(string eventName, object param)
    {
        UnityEvent<object> thisEvent = null;
        if (eventDictionary.TryGetValue(eventName, out thisEvent))
        {
            thisEvent.Invoke(param);
        }
    }
public void RaiseEvent ( string eventName , object param ) { UnityEvent < object > thisEvent = null ; if ( eventDictionary . TryGetValue ( eventName , out thisEvent ) ) { thisEvent . Invoke ( param ) ; } }
Calls all listener functions for the specified event.
Calls all listener functions for the specified event .
eventName
string
The event you are trying to raise.
The event you are trying to raise .
param
object
Additional data to pass along to the callbacks. If not applicable, pass null.
Additional data to pass along to the callbacks . If not applicable pass null .