public void OnRabitDeath(HeroRabit rabit) { rabit.transform.position = rabitStartPos; if (lifePanel != null) { rabit.MinusLife(); lifePanel.MinusLife(rabit.Lifes); if (rabit.Lifes == 0) { OnPlayerLose(); } } }