Пример #1
0
 public void AddSaladToPlayer(Player p)
 {
     if (salad.CanServeSalad())
     {
         salad.Interact(p);
         //salad object must be set to null as the salad is not on the chopping board, but with player instead
         salad = null;
     }
     if (salad == null)
     {
         if (veggie != null)
         {
             MakeSalad(veggie);
         }
     }
 }