UnEquip() public method

public UnEquip ( int SlotNo ) : bool
SlotNo int
return bool
Exemplo n.º 1
0
    public void UnEquipItemEvent(short slotNo)
    {//This must be called before the item is finally removed.
        ObjectInteraction objInt = GetObjectIntAtSlot(slotNo);

        if (objInt != null)
        {
            objInt.UnEquip(slotNo);
        }
    }
Exemplo n.º 2
0
    public void UnEquipItemEvent(short slotNo)
    {    //This must be called before the item is finally removed.
        GameObject obj = GetGameObjectAtSlot(slotNo);

        if (obj != null)
        {
            ObjectInteraction objInt = obj.GetComponent <ObjectInteraction>();
            if (objInt != null)
            {
                objInt.UnEquip(slotNo);
            }
        }
    }