protected override void OnRabbitHit(HeroRabbit rabbit) { LevelController.current.setCurCrystalColor(color); LevelController.current.addCrystal(color); if (LevelController.getSound()) { rabbit.playMusicOnCrystal(); } }
public override void OnRabitHit(HeroRabbit rabit) { CrystalPanel.crystals.Crystals(name); this.CollectedHide(); rabit.playMusicOnCrystal(); }