I'm designing a game project in Unity 5-64bits, I'm in the making part of the camera move. When I was typing the Javascript code, trying to use parentheses always gave the following error:
An error has occurred - error in text editor extension chair
Inoticedtheerrorandcontinuedtofinishthecode,IarrivedatapointthatIcouldalreadyexecute,butdraggingthecodetothelocationofthefollowingmessage:
PleaseFixcompileerrorsbeforecreatingnewscriptcomponents
Mycode:
#pragmastrictvarVelocidade:Vector3;functionStart(){}functionUpdate(){Velocidade.x=0;Velocidade.y=0;Velocidade.z=0;if(Input.mousePosition.x<=5||Input.mousePosition.x>=screen.width-5){Velocidade.x=Input.GetAxis("Mouse X")*10*Time.deltaTime;
}
if (Input.mousePosition.y<=5 || input.mousePosition.y>=screen.height-5)
{
Velocidade.z = Input.GetAxis("Mouse X")*10*Time.deltaTime;
}
transform.Translate(Velocidade);
}
And clicking Play displays the following message:
All compiler errors have to be fixed before you can enter playmode!
I think it's because of the problems ...