コード例 #1
0
 public void ClearItem()
 {
     bottomArmor  = null;
     icon.sprite  = null;
     icon.enabled = false;
     gameObject.SetActive(false);
 }
コード例 #2
0
 public void ClearBottomSlot()
 {
     item_B       = null;
     icon.sprite  = null;
     icon.enabled = false;
     gameObject.SetActive(false);
 }
コード例 #3
0
 public void AddItem(BottomArmor newItem)
 {
     bottomArmor  = newItem;
     icon.sprite  = bottomArmor.itemIcon;
     icon.enabled = true;
     gameObject.SetActive(true);
 }
コード例 #4
0
 public void AddBottomItem(BottomArmor newItem)
 {
     item_B       = newItem;
     icon.sprite  = item_B.itemIcon;
     icon.enabled = true;
     gameObject.SetActive(true);
 }
コード例 #5
0
        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);
        }