// call that does the mapping private static void Execute(ITakeDamageHandler handler, BaseEventData eventData) { // The ValidateEventData makes sure the passed event data is of the correct type handler.OnTakeDamage(ExecuteEvents.ValidateEventData <TakeDamageEventData>(eventData)); }
// call that does the mapping private static void Execute(ITakeDamageHandler handler, BaseEventData eventData) { // The ValidateEventData makes sure the passed event data is of the correct type handler.OnTakeDamage(ExecuteEvents.ValidateEventData<TakeDamageEventData>(eventData)); }