public void CreateNewItem() { //Create new Item ItemData itemData = new ItemData(); //Get an ID itemData.ID = DataMart.GetItemID(); //Set UI - ID ID.text = itemData.ID.ToString(); //Clear listeners SaveButton.onClick.RemoveAllListeners(); DeleteButton.onClick.RemoveAllListeners(); //Setup Save button SaveButton.onClick.AddListener(delegate { SaveItem(itemData); }); //Setup Delete button DeleteButton.onClick.AddListener(delegate { DeleteItem(itemData); }); ClearItemUI(); }