1
Support / Re: tk2dButton clicks doesn't work on Unity4.2 beta
« on: May 15, 2013, 01:57:22 pm »
Oh. But there's a bug to the new Editor right? Anyway it works now. Thanks man,
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
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));
}
}