public void ItemDescription(string type) { Debug.Log("Pressed the button: " + type); typeSelected = type; Debug.Log("ItemDescription is " + itemDescription); if (isFood) { itemDescription.setItem(typeSelected); } else { itemDescription2.setItem(typeSelected); } }