示例#1
0
 public bool Drop(SupplyFood food)
 {
     if (supplies.Count >= MaxFood)
     {
         return(false);
     }
     supplies.Add(food);
     food.PutOnPlate(FindPlate(), this);
     return(true);
 }
示例#2
0
    protected void CreateFood()
    {
        if (supplies.Count >= MaxFood)
        {
            return;
        }
        SupplyFood food = Instantiate(FoodPrefab);

        food.PutOnPlate(FindPlate(), this);
        supplies.Add(food);
    }