Exemplo n.º 1
0
 void PressMouseLeft()
 {
     if (isForward)
     {
         ForceSetMouse.PressMouseLeft((int)forward.x, (int)forward.y, absolute);
     }
     else
     {
         ForceSetMouse.PressMouseLeft((int)-forward.x, (int)-forward.y, absolute);
     }
 }
Exemplo n.º 2
0
 void MoveMouse()
 {
     if (isForward)
     {
         ForceSetMouse.MoveMouse((int)forward.x, (int)forward.y, absolute);
         textSet.text = "Frame " + Time.frameCount + " SetMouseForwards";
         isForward    = false;
     }
     else
     {
         ForceSetMouse.MoveMouse((int)-forward.x, (int)-forward.y, absolute);
         textSet.text = "Frame " + Time.frameCount + " SetMouseBackwards";
         isForward    = true;
     }
 }