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