public IEnumerator Shoot() { isShooting = true; bulletsLeft--; bulletsUI.RemoveBullet(); Weapon.GetComponent <Animation> ().Play("shootAnim"); source.Stop(); source.PlayOneShot(shootSound); yield return(new WaitForSeconds(0.5f)); if (bulletsLeft == 0) { StartCoroutine(Reload()); } isShooting = false; }