Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     Item = GameObject.FindGameObjectWithTag("Player").GetComponent <getItem>();
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     Item = GameObject.FindGameObjectWithTag("Player").GetComponent <getItem>();
     door = GameObject.FindGameObjectWithTag("Door").GetComponent <BoxCollider2D>();
 }