Quantcast
Channel: Answers for "How to properly use Yield for a coroutine?"
Viewing all articles
Browse latest Browse all 6

Answer by Absyss

$
0
0

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.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>