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; } } }
protected override void OnRabitHit(HeroRabbit rabbit) { if (!rabbit.beRambo(false)) { rabbit.die(this.transform); } Destroy(this.gameObject); }
protected override void OnRabitHit(HeroRabbit rabbit) { if (!rabbit.beRambo(false)) { rabbit.die(this.transform); } this.CollectedHide(); }
public void onRabbitDeath(HeroRabbit rabbit) { rabbit.beRambo(false); rabbit.transform.position = this.startingPosition; LivesController.current.removeLife(); }
protected override void OnRabitHit(HeroRabbit rabbit) { rabbit.beRambo(true); this.CollectedHide(); }