IEnumerator KillProjectile() { yield return(new WaitForSeconds(comp.timeOut)); if (rangedWeapon != null && rangedWeapon.maxAmountOfBulletsAlive) { rangedWeapon.DecrementBulletsAlive(); } gameObject.SetActive(false); }