public void StartPrep(IngredientData data, Action callback) { if (!InUse) { InUse = true; } mData = data; OnPepDone = callback; if (!ChopBoard.InUse) { ChopBoard.StartChopping(mData, OnChoppingDone); } }
//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); }