Which arguments can i use with sendMessage, broadcastMessage and SendMessageUpwards?
right now im getting the following error
No appropriate version of ‘UnityEngine.Component.SendMessageUpwards’ for the argument list ‘(String, int, UnityEngine.Vector3)’ was found.
and the code is quite simple
var numeroDoPonto = 0;
function Start()
{
SendMessageUpwards("addPatrolPoint", numeroDoPonto, transform.position);
}
this is supposed to be caught by this method
function addPatrolPoint(point:int, position:Vector3)
{
patrolPoints[point] = position;
}
ls there a restriction as to how many arguments i can pass with SendMessage?
thanks in advance