Hi, I am trying to the delay a function from firing until a specific boolean is false. I found a similar post with an answer of this nature.
while(myBool)
{
yield return null;
}
However, when i use this i get a syntax error saying it expects a semi colon. Is this C# syntax? If so, what would be the Unity-javascript equivalent? Thanks!