浏览代码

Fixed bug when trying to click item (#303)

/devlogs-3-input
GitHub 4 年前
当前提交
8a58f375
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Inventory/UIInventoryManager.cs

2
UOP1_Project/Assets/Scripts/Inventory/UIInventoryManager.cs


if (ActionButtonClicked != null)
{
//find the selected Item
if (instantiatedGameObjects.Count > selectedItemId)
if (instantiatedGameObjects.Count > selectedItemId && selectedItemId > -1)
{
//find the item
Item itemToActOn = new Item();

正在加载...
取消
保存