Esempio n. 1
0
 protected override void OnRabbitHit(HeroRabbit rabbit)
 {
     if (rabbit.getHealth() != 0)
     {
         if (rabbit.getFirstBomb())
         {
             CollectedHide();
         }
         rabbit.setDecrease(true);
         rabbit.decreaseHealth();
         rabbit.muteMusicOnRun();
         if (LevelController.getSound())
         {
             rabbit.playMusicOnBomb();
         }
     }
 }