示例#1
0
 public void OnRabbitDeath(HeroRabbit rabbit)
 {
     if (--_lives > 0)
     {
         rabbit.Revive();
         // on rabbit death return to the starting position
         rabbit.transform.position = _startingPosition;
     }
     else
     {
         FailLevel();
     }
 }