Noticias

¡RECUERDA QUE SI ERES UN NUEVO USUARIO, DEBES PRESENTARTE PARA PODER PUBLICAR MENSAJES! | TENEMOS CANAL OFICIAL DE TELEGRAM: t.me/unity3dspain

¿que es este error?

Iniciado por brok, Noviembre 20, 2015, 06:01:25 PM

Tema anterior - Siguiente tema
Estoy haciendo que cuando colisione se haga el evento y me sale este error.Failed to call AnimationEvent QuitarVIdaPlayer of class vidaAI.
The function must have either 0 or 1 parameters and the parameter can only be: string, float, int, enum, Object and AnimationEvent.

Le estás pasando mal los parametros al evento.Supongo que habrás revisado que el evento sea ademas del mismo gameobject que contienen la animación y el script.Luego si la función que lanzas desde el evento es un string le debes pasar el valor que quieres no un entero, pero creo que es mas lo primero.Revisalo.

Etiquetas: