Esempio n. 1
0
 private void LegSlot_OnItemDropped(object sender, InventorySlot.OnItemDroppedEventArgs e)
 {
     // Item dropped in weapon slot
     playerEquipment.TryEquipItem(PlayerEquipment.EquipSlot.Legs, e.item, false);
 }
Esempio n. 2
0
    IEnumerator waitForSlot(InventorySlot.OnItemDroppedEventArgs inventorySlot)
    {
        yield return(new WaitForSeconds(0.1f));

        playerEquipment.TryEquipItem(PlayerEquipment.EquipSlot.Weapon, inventorySlot.item, false);
    }
Esempio n. 3
0
 private void WeaponSlot_OnItemDropped(object sender, InventorySlot.OnItemDroppedEventArgs e)
 {
     // Item dropped in weapon slot
     //playerEquipment.TryEquipItem(PlayerEquipment.EquipSlot.Weapon, e.item, false);
     StartCoroutine(waitForSlot(e));
 }