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