Help with texture ongui

Hi, i dont know if this is the right place to post my doubt! sorry if its not, and sorry for my english (spanish is my first language)

Im very new to unity, i want to place an image on the center of the screen only if a gameobject with the tag that i want is in the center of the screen.
hope you understand… here is what i have now!

public float X;
public float Y;
public Texture mano;
bool puedeagarrarorchilito;

// Use this for initialization
void Start ()
{
puedeagarrarorchilito = false;
}

// Update is called once per frame
void Update ()
{
RaycastHit hit;

if (Physics.Raycast (transform.position, transform.forward, out hit, 20f)) {
if (hit.collider.gameObject.tag == “Agarrables”) {
puedeagarrarorchilito = true;
Debug.Log (“tocandofruta”);
} else {
puedeagarrarorchilito = false;
}
}

}
void OnGUI ()
{
float Xcoord = X * Screen.width;
float Ycoord = Y * Screen.height;
if (puedeagarrarorchilito) {

GUI.DrawTexture (new Rect (75, 99, Xcoord, Ycoord), mano);
}
}

i get the debuglog right!
but no image on screen
any ideas?
thanks1

Your X and Y are zero. Initialize them like 0.5f.

It worked thanks