Example #1
0
 protected override void OnRabbitHit(HeroRabbit rabbit)
 {
     LevelController.current.increasCoins();
     if (LevelController.getSound())
     {
         rabbit.playMusicOnCoin();
     }
 }
Example #2
0
 public override void OnRabitHit(HeroRabbit rabit)
 {
     LevelController.current.addCoins(1);
     this.CollectedHide();
     rabit.playMusicOnCoin();
 }