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