Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
enemy fire coroutine
IEnumerator LaserFire()
{
var _randomFire = Random.Range(5f, 7f);
Instantiate(_EnemyLaserPrefab, transform.position, Quaternion.identity);
yield return new WaitForSeconds(_randomFire);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment