if i have C# like
IEnumerator State() {
Debug.Log("Init");
do {
Debug.Log("update");
yield return null; //want to continue on next frame.
} while(state == GameState.State)
Debug.Log("close");
}
how can i continue in that loop without exiting the function?
I have tried yield return 0; yield return null; and both end up re entering the funciton via my “while(!quit) startCouroutine(state.ToString());” statement
if there isnt a yield statement for this i guess ill just have to use a flag, but that seems like a lousy workaround.