- Home /
 
 
               Question by 
               UnityThingsAndStuff · May 30, 2015 at 05:15 PM · 
                token  
              
 
              Unexpected Token: ..
var quit=false;
function OnMouseEnter() {
 renderer.material.color = Color.red;
 
 
               }
function OnMouseExit 
(
 renderer.material.color = Color.white;
 
               }
function OnMouseUp() {
 if (quit == true)
 {
     Application.Quit();
 }
 else
 {
     Application.LoadLevel(2);
 }    
 
               }
 function Update()
 
               { if (Input.GetKey(KeyCode.Escape)) 
 { Application.Quit(); } }
it says in line 13, renderer.material.color = Color.white; , unexpected token:..
               Comment
              
 
               
              Please read the FAQ and watch the tutorial video to learn about how to format code.
Answer by Graham-Dunnett · May 30, 2015 at 05:17 PM
Read up on what brackets (, ) and braces {, } are for. Your OnMouseExit function is written badly. 
Your answer
 
             Follow this Question
Related Questions
How to get FB SDK accesToken for page ? 0 Answers
Unexpected Token: ) 1 Answer
parse serial data from arduino 1 Answer
Get google token 1 Answer
unexpected token 1 Answer