public void CreateNewNPC() { NPCData npcData = new NPCData(); npcData.ID = DataMart.GetNPCID(); ID.text = npcData.ID.ToString(); Delete.onClick.RemoveAllListeners(); Save.onClick.RemoveAllListeners(); Delete.onClick.AddListener(delegate { DeleteNPC(npcData); }); Save.onClick.AddListener(delegate { SaveNPC(npcData); }); ClearNPCUI(); }