public override void OnRabitHit(HeroRabbit rabit) { PlayerPrefs.SetInt(this.name.ToString(), 1); LevelController.current.addFruit(1); this.CollectedHide(); rabit.playMusicOnFruit(); }
protected override void OnRabbitHit(HeroRabbit rabbit) { if (!LevelController.current.containFruit(id)) { LevelController.current.increaseFruits(); } if (LevelController.getSound()) { rabbit.playMusicOnFruit(); } LevelController.current.putInList(id); }