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

Answer by tertle

Just create it as an infinite loopfunction foo() { while(true) { yield WaitForSeconds(1); ... } }

View Article



Answer 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 Article

Answer 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

Answer by tertle

Just create it as an infinite loopfunction foo() { while(true) { yield WaitForSeconds(1); ... } }

View Article

Answer 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 Article


Answer 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
Browsing all 6 articles
Browse latest View live




Latest Images