Esempio n. 1
0
    public void setActive(bool active)
    {
        ItemObject tempObject = Item;

        if (invH.EquipmentSlotToggled(this))
        {
            Character p = GameObject.FindGameObjectWithTag("Player").GetComponent <Character>();

            if (tempObject.ID != -1)
            {
                p.RemoveEquippedItem(tempObject);
            }

            if (Item.ID != -1)
            {
                p.AddEquipedItem(Item);
            }
        }
    }