Quantcast
Channel: Answers for "Definition of Script.function() depends on Script.function()..."
Viewing all articles
Browse latest Browse all 6

Answer by Eric5h5

$
0
0

Generally you shouldn't use recursion unless you actually need it, but just to answer the specific question here, the type of a coroutine is IEnumerator. So you can use

function foo() : IEnumerator

to fix the error message, though using an infinite loop is better in this case.


Viewing all articles
Browse latest Browse all 6

Trending Articles