Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player");
     w      = 300;
     x      = guiTexture.pixelInset.x;
     y      = guiTexture.pixelInset.y;
     h      = guiTexture.pixelInset.height;
     script = player.GetComponent <LeroyControl>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Awake()
 {
     player        = GameObject.FindGameObjectWithTag("Player");
     script        = player.GetComponent <LeroyControl>();
     pickupSpawner = GameObject.FindGameObjectWithTag("PickupSpawner");
 }