public void ClearItem() { chestArmor = null; icon.sprite = null; icon.enabled = false; gameObject.SetActive(false); }
public void AddItem(ChestArmor newItem) { chestArmor = newItem; icon.sprite = chestArmor.itemIcon; icon.enabled = true; gameObject.SetActive(true); }
public void ClearChestSlot() { item_C = null; icon.sprite = null; icon.enabled = false; gameObject.SetActive(false); }
public void AddChestItem(ChestArmor newItem) { item_C = newItem; icon.sprite = item_C.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); }