↧
Answer by tertle
Just create it as an infinite loopfunction foo() { while(true) { yield WaitForSeconds(1); ... } }
View ArticleAnswer by Eric5h5
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 usefunction foo() : IEnumeratorto...
View ArticleAnswer by alexniver
acturally, I have found a solution http://forum.unity3d.com/threads/6906-recursive-calling here, we can write javascript like this~ function ToJSON(obj : Boo.Lang.Hash) : String { what unity need just...
View Article