public void EndandSave() { equippedItemNames.Clear(); foreach (EditorModeItemData itemData in equippedItemsData) { equippedItemNames.Add(itemData.englishName.ToString()); } playerDataController.UpdateEquippedEditorModeItem(equippedItemNames); // purchasedItemsData.Clear (); // itemsData.Clear (); // purchasedItemNames.Clear (); // equippedItemNames.Clear(); }