- Home /
Question by
Lior Asher · Nov 20, 2012 at 12:35 AM ·
what is wrong with my script
im also geting this error it looks like nothing is wrong with the script so can someone please help me?
screen shot 2012-11-19 at 6.21.34 pm.png
(230.8 kB)
Comment
Answer by lil_billy · Nov 20, 2012 at 02:15 AM
normally id avoid posts like this, but it seemed simple enough instead of the usual white wash of code
glancing at it id say that what is tripping unity up is that yield break next to the if statement it needs to be in brackets like everything else in an if statement
if(.......)
{ <------see brackets
yield break;
} <------see brackets
perhaps you should look at some "Hello World" tutorials
Your answer
Follow this Question
Related Questions
deleted ............... 1 Answer
Shooting script problem. 2 Answers
Hover Script problem 0 Answers
What to do when you can't make scripts 2 Answers