示例#1
0
            {
                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());
            }
        }
示例#2
0
            }
        }

        private void OnTouchPointsCancelled(object sender, TouchEventArgs e)
        {
            OnTouchPointsRemoved(sender, e);
        }

        private void OnTouchPointsRemoved(object sender, TouchEventArgs e)
        {
示例#3
0
 private void OnTouchesCancelled(object sender, TouchEventArgs e)
 {
     OnTouchesEnded(sender, e);
 }
示例#4
0
        {
            if (!enabled) return;

            foreach (var touchPoint in e.TouchPoints) {