Move it to the line after without a variable declaration.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
épéee script..ctor () (at Assets/épéee script.js:5)
voici le code :
Code : Tout sélectionner
#pragma strict
animation.Stop();
var attack=animation["Default Take"];
attack.wrapMode=WrapMode.PingPong;
function OnMouseDown(){
animation.Play("Default Take");
}
si vous pouviez m'aidez merci d'avance alidan
Edit : je poste dans cette section puisque le code n'ait qu'une adaptation du code des tuto