i’m using yield break; in a co routine but the editor it gives me a UCE0001: ‘;’ expected. Insert a semicolon at the end. there is a semi colon at the end so i’m not sure what to do? i’m using unity script and any help would be very much appreciated.
function Break()
{
if(cancel){
yield break ;
}
else{
yield 2;
// do stuff//
}
}