Déclenchement de l'événement par Code Unity

 EventTrigger trigger = GetComponentInParent<EventTrigger>();
 EventTrigger.Entry entry = new EventTrigger.Entry();
 entry.eventID = EventTriggerType.PointerClick;
 entry.callback.AddListener( (eventData) => { Foo(); } );
 trigger.triggers.Add(entry);
Ahmed Qaddora