IEnumerator FireLazer() { lazerinprogress = true; yield return(new WaitForSeconds(CooldownTime)); if (psystem != null) { psystem.Play(); } source.Play(); yield return(new WaitForSeconds(ChargeTime)); spawner.Fire(); lazerinprogress = false; }