IEnumerator killRabbit() { yield return(new WaitForSeconds(0.5f)); if (currentCooldown <= 0) { HeroRabbit rabbit = HeroRabbit.lastRabbit; if (rabbit.isTheRambo()) { rabbit.beRambo(false); } else { HeroRabbit.lastRabbit.die(this.transform); } currentCooldown = cooldown; if (sr.flipX) { mode = Mode.GoToA; } else { mode = Mode.GoToB; } } }