public void ClearItem() { bottomArmor = null; icon.sprite = null; icon.enabled = false; gameObject.SetActive(false); }
public void ClearBottomSlot() { item_B = null; icon.sprite = null; icon.enabled = false; gameObject.SetActive(false); }
public void AddItem(BottomArmor newItem) { bottomArmor = newItem; icon.sprite = bottomArmor.itemIcon; icon.enabled = true; gameObject.SetActive(true); }
public void AddBottomItem(BottomArmor newItem) { item_B = newItem; icon.sprite = item_B.itemIcon; icon.enabled = true; gameObject.SetActive(true); }
private void Start() { //weapon rightWeapon = playerProfile.weaponsInRightHandSlot[0]; leftWeapon = playerProfile.weaponsInLeftHandSlot[0]; weaponSlotManager.LoadWeaponOnSlot(rightWeapon, false); weaponSlotManager.LoadWeaponOnSlot(leftWeapon, true); //gear currentHelmetEquipment = playerProfile.helmetInSlot[0]; currentChestArmorEquipment = playerProfile.chestArmorInSlot[0]; currentBottomArmorEquipment = playerProfile.bottomArmorInSlot[0]; //item currentConsumable = playerProfile.itemInSlot[0]; LoadItemOnSlot(currentConsumable); //spell currentSpell = playerProfile.spellInSlot[0]; LoadSpellOnSlot(currentSpell); }