I need this
private IEnumerator Delay()
{
_allowFire = false;
yield return new WaitForSeconds(0.16F);
_allowFire = true;
}
in JS PLEASE!
I need this
private IEnumerator Delay()
{
_allowFire = false;
yield return new WaitForSeconds(0.16F);
_allowFire = true;
}
in JS PLEASE!
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.