Quantcast
Channel: Questions in topic: "slot"
Viewing all articles
Browse latest Browse all 109

Access to slot Item

$
0
0
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); } }

Viewing all articles
Browse latest Browse all 109

Trending Articles