what Mike meant is following:
function myFirstFunction():IEnumerator {
...
}
function mySecondFunction():IEnumerator {
...
}
...
yield myFirstFunction();
yield mySecondFunction();
this way the compiler wont get confused about the correct type.
what Mike meant is following:
function myFirstFunction():IEnumerator {
...
}
function mySecondFunction():IEnumerator {
...
}
...
yield myFirstFunction();
yield mySecondFunction();
this way the compiler wont get confused about the correct type.