Beispiel #1
0
 protected override void OnPickUp(Snake pSnake)
 {
     if (pSnake == null)
     {
         Debug.LogError("snake is null");
         return;
     }
     Debug.Log($"{pSnake} OnPickUp {this}");
     pSnake.Heal(health);
     for (int i = 0; i < bodyParts; i++)
     {
         pSnake.AddBodyPart();
     }
 }