Trying to send message with 2 variables, but getting error.

So I am sending this message.

SendMessage (“Event”, Player , 0);

To this function.

function Event ( Player : Transform, Direction : int)

And getting this error

Failed to call function Event of class EventControllerBasic
Calling function Event with 1 parameter but the function requires 2.
UnityEngine.Component:SendMessage(String, Object, SendMessageOptions)
EventCollider:Update() (at Assets/BlaBla)

SendMessage doesn’t support calling methods with more than 1 parameter. If you need two variables wrap them in a class or struct that you can pass as a single parameter.