1
Support / tk2dButton clicks doesn't work on Unity4.2 beta
« on: May 15, 2013, 03:50:47 am »
I can confirm this is the line that doesn't get called:
Code: [Select]
if (Input.GetMouseButtonDown(0))
{
Debug.Log("Casting Ray");
Ray ray = viewCamera.ScreenPointToRay(Input.mousePosition);
RaycastHit hitInfo;
if (collider.Raycast(ray, out hitInfo, 1.0e8f))
{
if (!Physics.Raycast(ray, hitInfo.distance - 0.01f))
StartCoroutine(coHandleButtonPress(-1));
}
}