// 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>(); }
// Use this for initialization void Awake() { player = GameObject.FindGameObjectWithTag("Player"); script = player.GetComponent <LeroyControl>(); pickupSpawner = GameObject.FindGameObjectWithTag("PickupSpawner"); }