Version: 2017.3
public delegatevoid EventFunction<T0> (T1 handler, EventSystems.BaseEventData eventData);

描述

EventFunction 的函数定义,用于将给定的 EventInterface 映射到特定事件调用。

private static readonly EventFunction<IPointerEnterHandler> s_PointerEnterHandler = Execute;

private static void Execute(IPointerEnterHandler handler, BaseEventData eventData) { handler.OnPointerEnter (ValidateEventData<PointerEventData> (eventData)); }