Exemplo n.º 1
0
    public void Equip(EquiptmentSO newItem, EquimentType type)
    {
        Debug.Log(type);
        int index = (int)type;


        if (currentEquiptment[index] != null)
        {
            EquiptmentSO oldItem = currentEquiptment[index];
            Inventory.instance.Add(oldItem);
        }

        currentEquiptment[index] = newItem;

        Callback();
    }
Exemplo n.º 2
0
    public void Equip(EquiptmentSO eq)
    {
        equipmentManager.Equip(eq, eq.type);

        Remove(eq);
    }