private void OnDestroy() { if (itemSaveManager != null) { itemSaveManager.SaveEquipment(this); itemSaveManager.SaveInventory(this); } }
private void OnDestroy() { itemSaveManager.SaveEquipment(equipmentPanel); itemSaveManager.SaveInventory(inventory); }