public void OnClick(RaycastHit hit, Transform t)
    {
        IInteract obj = interact.GetHolding();

        if (obj == null && !CookUI.isMoving && canInteract)
        {
            if (!gameObject.CompareTag("Tray")) //trays cannot be picked up, after some deliberartion
            {
                if (gameObject.CompareTag("Plate"))
                {
                    CheckPlateCount();
                }
                interact.OnPickUp(transform);
                CheckForFood();
            }
        }
        else if (obj != null && !CookUI.isMoving && canInteract)
        {
            if (obj.GetObject().CompareTag("Food") && !interact.Moving()) //putiing food on move_s
            {
                if (foodType != null)                                     //for trays
                {
                    if (foodType.name == obj.GetName())
                    {
                        PutFoodOn(hit, obj.GetObject());
                    }
                }
                else
                {
                    PutFoodOn(hit, obj.GetObject()); //doesn't need to distinguish between food types
                }
            }
        }
    }