浏览代码

[Bot] Automated dotnet-format update

/UI
uChema 4 年前
当前提交
2547aad0
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 4
      UOP1_Project/Assets/Scripts/Inventory/InventoryItemFiller.cs
  2. 4
      UOP1_Project/Assets/Scripts/Inventory/UIInventoryManager.cs

4
UOP1_Project/Assets/Scripts/Inventory/InventoryItemFiller.cs


_bgImage.color = itemStack.Item.ItemType.TypeColor;
_itemButton.onClick.RemoveAllListeners();
_itemButton.onClick.AddListener(() =>
{
SelectItem();

public void HoverFirstElement()
{
_itemButton.Select();
_itemButton.Select();
}
public void HoverItem()

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


_instanciatedItems = new List<InventoryItemFiller>();
int maxCount = Mathf.Max(listItemsToShow.Count, _instanciatedItems.Count);
for (int i = 0; i < maxCount; i++)
{
if (i < listItemsToShow.Count)

//hover First Element
if (_instanciatedItems.Count > 0)
{
_instanciatedItems[0].HoverFirstElement();
_instanciatedItems[0].HoverFirstElement();
}
}
public void UpdateOnItemInInventory(ItemStack itemToUpdate, bool removeItem)

正在加载...
取消
保存