protected override void Remove(string key) { // Show a warning if we have items using this schema List <string> items = GDEItemManager.GetItemsOfSchemaType(key); bool shouldDelete = true; if (items != null && items.Count > 0) { string itemWord = items.Count == 1 ? "item" : "items"; shouldDelete = EditorUtility.DisplayDialog(string.Format("{0} {1} will be deleted!", items.Count, itemWord), GDEConstants.SureDeleteSchema, GDEConstants.DeleteSchemaBtn, GDEConstants.CancelBtn); } if (shouldDelete) { GDEItemManager.RemoveSchema(key, true); SetNeedToSave(true); } }