상속: MonoBehaviour
예제 #1
0
        public static void StartPath(Vector2 start, Vector2 end)
        {
            if (FollowingPath)
            {
                CancelPath();
            }

            LastPath     = Utils.TickCount;
            _currentPath = new MousePath(start, end);
        }
예제 #2
0
        public static void StartPath(Vector2 start, Vector2 end)
        {
            if (FollowingPath)
            {
                CancelPath();
            }

            LastPath = Utils.TickCount;
            _currentPath = new MousePath(start, end);
        }
예제 #3
0
        public static void StartPathWorld(Vector3 end)
        {
            var screenEnd = end.ToScreenPoint();

            if (!screenEnd.IsValid())
            {
                return;
            }

            _currentPath = new MousePath(VirtualCursor.Position, screenEnd);
        }
예제 #4
0
        public static void StartPathWorld(Vector3 end)
        {
            var screenEnd = end.ToScreenPoint();

            if (!screenEnd.IsValid())
            {
                return;
            }

            _currentPath = new MousePath(VirtualCursor.Position, screenEnd);
        }
예제 #5
0
 public static void StartPath(Vector2 end)
 {
     _currentPath = new MousePath(VirtualCursor.Position, end);
 }
예제 #6
0
 public static void CancelPath()
 {
     _currentPath = null;
 }
예제 #7
0
 public static void CancelPath()
 {
     _currentPath = null;
 }
예제 #8
0
 public static void StartPath(Vector2 end)
 {
     _currentPath = new MousePath(VirtualCursor.Position, end);
 }
 public Mouse(WindowOverlay overlay)
 {
     this.overlay = overlay;
     this.windMouse = new WindMouse(this);
     this.mousePosition = new Point(-1, -1);
     this.mousePath = new MousePath();
     this.movementPositions = new LinkedList<Point>();
     this.mouseCrossPen = new Pen(Color.Red, 2);
 }