Example #1
0
 override public bool canAcceptFood(FoodProperty property)
 {
     if (property.GetPropertyBool(FoodProperty.PropertyBool.Oriental) == true)
     {
         return(true);
     }
     return(false);
 }
Example #2
0
 override public bool canAcceptFood(FoodProperty property)
 {
     if (property.GetProperty(FoodProperty.Property.Warmth) >= 7)
     {
         return(true);
     }
     return(false);
 }
Example #3
0
 override public bool canAcceptFood(FoodProperty property)
 {
     if (property.GetPropertyBool(FoodProperty.PropertyBool.Vegetables) == true && property.GetProperty(FoodProperty.Property.Greasiness) >= 5)
     {
         return(true);
     }
     return(false);
 }
Example #4
0
 // 食品を受け取って評価する
 public void TakeFood(FoodProperty property)
 {
     if (this.GetComponent <FoodRequirement>().canAcceptFood(property))
     {
         commentText.text = property.GetName() + " うん、おいしい!";
         Destroy(gameObject);
     }
     else
     {
         commentText.text = property.GetName() + " なにこれ?";
     }
 }
Example #5
0
    // 最後にお皿に乗った食材を提供する(プロパティを渡す)
    public void Serve()
    {
        if (food == null)
        {
            return;
        }
        FoodProperty property = food.GetComponent <FoodProperty>();

        customer.TakeFood(property);
        food = null;
        return;
    }
Example #6
0
 virtual public bool canAcceptFood(FoodProperty property)
 {
     return(true);
 }