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);
}
}
↧