Thank you, Koray. how do I specify the button? Can I put the argument into it? I was also reading that Android doesn't like Input.touchCount, and was thinking of using touch.phase, but the instructions are confusing. Could I do:
void Update ()
{
Touch touch = Input.GetTouch(0);
if ((touch.phase == TouchPhase.Began) && (guiTexture.HitTest(touch.position)))
{
Application.LoadLevel(2);
audio.Play ();
}
}
↧