Ejemplo n.º 1
0
 void Awake()
 {
     player       = GameObject.FindGameObjectWithTag("Player");
     Keyinventory = player.GetComponent <scr_keyinventory> ();
     Keypickup    = GameObject.FindGameObjectWithTag("KeySpawner").GetComponent <scr_keypickup> ();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Awake()
 {
     player       = GameObject.FindGameObjectWithTag("Player");
     Keyinventory = player.GetComponent <scr_keyinventory> ();
     keyinstance  = Instantiate(key, transform.position, transform.rotation) as GameObject;
 }