- Home /
error CS8025: Parsing error
Hello,I am new at Unity and my friend show me a little bit i wrote this code and i get error CS8025: Parsing error and i dont know why can someone help me please
var mouseLocked = false; }
function Start ()
{
if (mouseLocked)
{
Screen.lockCursor = true;
}
if(!mouseLocked)
{
Screen.lockCursor = false;
}
Comment
Answer by YoungDeveloper · Jun 08, 2014 at 05:38 PM
var mouseLocked:boolean = false;
function Start (){
if (mouseLocked){
Screen.lockCursor = true;
}
else{
Screen.lockCursor = false;
}
}
I googled it but i didn't understand but now i understand thanks ^_^