Here I just started the script and here is my problem:
Assets/Rotation_JavoD.js(9,65): BCE0043: Unexpected token: =.
Here is my script :
static var vitesse = 10;
function Update () {
transform.Rotate(Vector3.right*Time.deltaTime*vitesse);
}
function OnGUI(){
GUI.Box (Rect(30, 90, 80, 70),"Modifier la vitesse de rotation /n /n <<--|-->>");
vitesse = GUI.HorizontalSlider (Rect (10, 130, 75, 25),vitesse, =-150.0,150.0);
}
Thank you my friend :) !!!! (im stupid)
– JavoD