Разобрался.
-
...
Пока не имею девайса с ведроидом, просьба проверить этот код:
using UnityEngine;
using System.Collections;
public class mobile_clicker : MonoBehaviour {
public GUITexture[] butts;
void OnUpdate()
{
foreach(Touch t in Input.touches)
{
if(t.phase == TouchPhase.Began)
{
foreach(GUITexture b in butts)
{
Rect r = b.GetScreenRect();
if( QuadCollide(r.x,r.y,r.width,r.height,t.position.x,t.position.y) )
{
b.SendMessage("OnMouseDown", null, SendMessageOptions.DontRequireReceiver);
}
}
}
}
}
bool QuadCollide(float x,float y,float w,float h,float ix,float iy)
{
if(ix>=x)
{
if(iy>=y)
{
if(ix<=(x+w))
{
if(iy<=(y+h))
{
return true;
}
}
}
}
return false;
}
}
Оно должно имитировать OnMouseDown для GUITexture из указанного массива.