public bool CheckClickOnRects( Vector2 point)
{
//Debug.Log("allRects.Count "+ allRects.Count);
if (allRects.Count != 0)
foreach ( Rect r in allRects ){
Rect temp = new Rect(r.x,r.y,r.width,r.height);
if (temp.Contains(point)){
//Debug.Log("Clicou SOBRE");
return true;
}
}
//Debug.Log("Clicou FORA");
return false;
}