Hi,
I’m a little confused about coroutines.
See the code below.
IEnumerator f()
{
yield return StartCoroutine(g());
if (one == true)
{
Do something ....
}
}
IEnumerator g()
{
if (two == true)
{
Do something ....
}
if (three == true)
{
Do something ....
}
yield return null;
}
Is it right that if-statement “two” is executed first, then if-statement “three” and then if-statement “one”?
Are the if-statements “two” and “three” both finished before “yield return null” goes back to IEnumerator f()?