{ var x = dummy.Value.Position.x; var y = Screen.height - dummy.Value.Position.y; GUI.DrawTexture(new Rect(x - TouchTexture.width / 2, y - TouchTexture.height / 2, TouchTexture.width, TouchTexture.height), TouchTexture, ScaleMode.ScaleToFit); GUI.Label(new Rect(x + TouchTexture.width, y - 9, 60, 25), dummy.Value.Id.ToString()); } }
} } private void OnTouchPointsCancelled(object sender, TouchEventArgs e) { OnTouchPointsRemoved(sender, e); } private void OnTouchPointsRemoved(object sender, TouchEventArgs e) {
private void OnTouchesCancelled(object sender, TouchEventArgs e) { OnTouchesEnded(sender, e); }
{ if (!enabled) return; foreach (var touchPoint in e.TouchPoints) {