protected IEnumerator SMGBulletsBehaviour() { for (int i = 0; i < numberOfBullets; i++) { yield return(new WaitForSeconds(shootInterval)); weapon.ShootSMG("Player" + Utility.GetPlayerIndexFromBullet(this.gameObject.tag).ToString(), spreadValue); } canSpread = false; }