Added controls for gamepad, changed input & UI
This commit is contained in:
@@ -172,27 +172,6 @@ namespace Assets.Scripts
|
||||
return result;
|
||||
}
|
||||
|
||||
public virtual void move(InventorySlot startDrag, Inventory inventory, InventorySlot endDrag)
|
||||
{
|
||||
if (endDrag.place != ItemPlace.BAG)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Item item = endDrag.getItem(endDrag.getCurrentBag());
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
startDrag.setItem(item, endDrag.getCurrentBag());
|
||||
}
|
||||
else
|
||||
{
|
||||
startDrag.removeItem();
|
||||
}
|
||||
|
||||
endDrag.setItem(this, startDrag.getCurrentBag());
|
||||
}
|
||||
|
||||
private void chooseItem()
|
||||
{
|
||||
int index = rand.Next(4);
|
||||
|
||||
Reference in New Issue
Block a user