- Home /
Question by
Fierce Waffle · Feb 16, 2011 at 05:20 AM ·
Simple C# to JS
I need this
private IEnumerator Delay()
{
_allowFire = false;
yield return new WaitForSeconds(0.16F);
_allowFire = true;
}
in JS PLEASE!
Comment
Post what you fixed and tick your question, that way it does not stay as an unanswered question. (Though you have to wait 42 hours or something till you can tick your question)
@aaron unfortunately, unity answers doesn't have the community we find in other stack exchange sites, nor the same updated engine for that matter. what we need here is more moderators cleaning up this mess. :P
Answer by · Feb 16, 2011 at 01:36 PM
Should be:
private function Delay()
{
_allowFire = false;
yield WaitForSeconds(0.16);
_allowFire = true;
}
You don't need to use StartCoroutine when calling coroutines with UnityScript.
Your answer
Follow this Question
Related Questions
Script translation 2 Answers
Can someone convert this C# script to javascript 1 Answer
Accessing C# from Javascript? 2 Answers
C# to UnityScript. 1 Answer
C# to Unityscript problem. 1 Answer