public void AddPlayerEquipmentSlots(PartyMember member) { if (!AreEquipmentSlotsOpen()) { equipmentSlots.gameObject.SetActive(true); } if (!IsPlayerInfoOpen()) { playerInfo.gameObject.SetActive(true); } ClearSlots(); // Set the right # of slots selectedPartyMember = member.characterName; int numberOfSlots = member.GetModSlots(); for (int i = 0; i < slots.Length; i++) { if (i < numberOfSlots) { slots[i].SetActive(true); } else { slots[i].SetActive(false); } } RestoreUIForCurrentEquipment(); playerInfo.Populate(selectedPartyMember); }