void __touchBegin(EventContext context)
{
if (Stage.inst.touchCount > 1)
{
Stage.inst.onTouchMove.Remove(__touchMove);
Stage.inst.onTouchEnd.Remove(__touchEnd);
if (_started)
{
_started = false;
onEnd.Call(context.inputEvent);
}
return;
}
InputEvent evt = context.inputEvent;
_startPoint = _host.GlobalToLocal(new Vector2(evt.x, evt.y));
_lastPoint = _startPoint;
_throwPoint = _startPoint;
_time2 = _time = Time.time;
_started = false;
velocity = Vector2.zero;
position = Vector2.zero;
Stage.inst.onTouchMove.Add(__touchMove);
Stage.inst.onTouchEnd.Add(__touchEnd);
}