IEnumerator Idle() { GetComponent <Collider2D>().enabled = true; launcher.delay = idleDelay; launcher.speed = idleSpeed; launcher.time = idleTime; StartCoroutine(launcher.LaunchRandom()); yield return(new WaitForSeconds(idleTime)); GetComponent <Animator>().SetBool("Boil", true); yield return(new WaitForSeconds(boilTime)); GetComponent <Animator>().SetBool("Boil", false); }