예제 #1
0
    public void StartPrep(IngredientData data, Action callback)
    {
        if (!InUse)
        {
            InUse = true;
        }

        mData     = data;
        OnPepDone = callback;

        if (!ChopBoard.InUse)
        {
            ChopBoard.StartChopping(mData, OnChoppingDone);
        }
    }
예제 #2
0
 //function to put a veggie on the chopping board, currently only checks to
 //make sure a veggie can be dequeued
 void PutVegetableOnChoppingBoard(ChoppingBoard board)
 {
     transform.position = board.newPlayerPos.position;
     board.StartChopping("Chopped " + TakeItemFromQueue().veggieName);
 }