protected override void OnRabitHit(HeroRabbit rabit) { if (!rabit.beBig(false)) { rabit.die(this.transform); } this.CollectedHide(); }
protected override void OnRabitHit(HeroRabbit rabit) { Debug.Log("hit"); if (!rabit.beBig(false)) { rabit.die(this.transform); } Destroy(this.gameObject); }
IEnumerator killRabbit() { yield return(new WaitForSeconds(0.5f)); HeroRabbit rabit = HeroRabbit.lastRabit; if (rabit.isBigRabit()) { rabit.beBig(false); } else { HeroRabbit.lastRabit.die(this.transform); } if (sr.flipX) { mode = Mode.GoToA; } else { mode = Mode.GoToB; } }
protected override void OnRabitHit(HeroRabbit rabit) { rabit.beBig(true); this.CollectedHide(); }