Пример #1
0
 public void ClearItem()
 {
     chestArmor   = null;
     icon.sprite  = null;
     icon.enabled = false;
     gameObject.SetActive(false);
 }
Пример #2
0
 public void AddItem(ChestArmor newItem)
 {
     chestArmor   = newItem;
     icon.sprite  = chestArmor.itemIcon;
     icon.enabled = true;
     gameObject.SetActive(true);
 }
Пример #3
0
 public void ClearChestSlot()
 {
     item_C       = null;
     icon.sprite  = null;
     icon.enabled = false;
     gameObject.SetActive(false);
 }
Пример #4
0
 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);
        }