Professional Documents
Culture Documents
Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
[Header("Raycast")]
public float raycastDistance = 5f;
public LayerMask itemLayer;
if (Input.GetKeyDown(KeyCode.E))
toggleInventory(!inventory.activeInHierarchy);
}
if (newItem)
{
itemHoverText.text = newItem.name;
}
}
}
}
}
InventorySlots[i].updateData();
}