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?

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


{ <------see brackets

      yield break;

} <------see brackets

perhaps you should look at some “Hello World” tutorials