예제 #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);
        }