Exemple #1
0
    private void ExecuteStationAction()
    {
        WorkingStation ws = currentHeldGameObject.transform.parent.GetComponent <WorkingStation>();

        if (ws != null)
        {
            if (ws.MakeNewIngredient())
            {
                return;
            }
        }
        Plate plate = currentHeldGameObject.transform.parent.parent.parent.GetComponent <Plate>();

        if (plate != null)
        {
            if (plate.DeliverPlate())
            {
                return;
            }
        }
    }