You can add delegate parameter to function by dragging event pin from event dispatcher and dropping it on the function.