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(); } } }
protected virtual bool findCondition(HeroRabbit rabbit) { return(rabbit.getHealth() != 0); }