- Home /
Question by
MrNunoPT · Feb 10, 2018 at 11:44 AM ·
inventory systemitemsslot
Access to slot Item
I want to get the "Item id" to put in the
(Slot1.GetChild(0).tag == "Item")
so i know what item its inside the slot and then spawn it.
if (Input.GetKeyDown (KeyCode.Alpha1))
{
if (Slot1.GetChild(0).tag == "Item")
{
axe.gameObject.SetActive (false);
}
else
{
axe.gameObject.SetActive (true);
}
}
print4.png
(311.5 kB)
Comment