void OnClick()
{
UILabel label = GetComponent<UILabel>();
if (label != null)
{
Vector2 screenPos = Input.mousePosition;
Camera cam = NGUITools.FindCameraForLayer(gameObject.layer);
Vector3 worldPos = cam.ScreenToWorldPoint(screenPos);
Vector3 localPos = transform.worldToLocalMatrix.MultiplyPoint3x4(worldPos);
string str
= label
.GetWordAtPosition(new Vector2
(localPos
.x, localPos
.y)); Debug.Log(str);
}
}