private void Initialize() { EventTrigger trigger = go.GetComponent <EventTrigger>(); // Initialize our event triggers EventUtility.CreateEventTriggerEntry <PointerEventData>(trigger, EventTriggerType.PointerDown, OnPointerDown); EventUtility.CreateEventTriggerEntry <PointerEventData>(trigger, EventTriggerType.PointerUp, Reset); EventUtility.CreateEventTriggerEntry <PointerEventData>(trigger, EventTriggerType.PointerExit, Reset); }