public PlayerDataManager.PlayerData LoadPlayerEquipmentStatusSetting(PlayerDataManager.PlayerData _playerData) { ItemContainerSaveData savedSlots = ItemSaveIO.LoadItems(EquipmentFileName); if (savedSlots == null) { return(_playerData); } for (int i = 0; i < savedSlots.savedSlots.Length; i++) { ItemSlotSaveData savedSlot = savedSlots.savedSlots[i]; if (savedSlot == null) { } else { EquippableItem equipItem = (EquippableItem)m_itemDataBase.GetItemReference(savedSlot.itemID); _playerData.attack += equipItem.attackBonus; _playerData.defensive += equipItem.armorBonus; _playerData.maxHp += equipItem.maxHealthBonus; } } return(_playerData); }