Beispiel #1
0
    public Dish CreateDish()
    {
        var t = Instantiate(dishTemplate, dishSocket.transform.position, Quaternion.identity, transform);

        dishSocket.Add(t.transform);
        dishes.Add(t);
        return(t);
    }
Beispiel #2
0
    // Called by Staff
    public void CleanDish()
    {
        if (waitingDishes.Count <= 0)
        {
            return;
        }
        NoticeM.UseNotice("Clean!", transform.position);
        var t = dutyPoint.Remove();

        cleanedPoint.Add(t.transform);
        // Take Clean
        var i = waitingDishes.Count - 1;

        waitingDishes[i].isClean = true;
        cleanedDishes.Add(waitingDishes[i]);
        waitingDishes.RemoveAt(i);
    }
Beispiel #3
0
    public void TakeDish(Dish dish)
    {
        if (dish == null)
        {
            Say("No Dish? Fxxk you");
            isAngry = true;
            return;
        }
        //dish.transform.rotation = Quaternion.identity;
        dish.transform.SetParent(handSocket.transform);

        handSocket.Add(dish.transform);
        if (!dish.isClean)
        {
            foreach (var item in dishes)
            {
                item.isClean = false;
            }
        }
        dishes.Add(dish);
    }
Beispiel #4
0
 public void AddRequestFood(Food food)
 {
     Say("음식추가됨");
     requestFood.Add(food);
     requestFoodObj.Add(food.transform);
 }