Ejemplo n.º 1
0
 private void OnMouseDown()
 {
     Operating = true;
     StartCoroutine(UIFocus.ControlListener());
     _ScreenPos = Input.mousePosition;
     _Origin    = Cam.ScreenToWorldPoint(new Vector3(_ScreenPos.x, _ScreenPos.y, Cam.nearClipPlane));
     _Origin.y  = 0;
     _Anchor    = Opposite.transform.position;
 }
Ejemplo n.º 2
0
 private void OnMouseDown()
 {
     if (Editable && Selected == this)
     {
         StartCoroutine(UIFocus.ControlListener());
         _ScreenPos = Input.mousePosition;
         _Origin    = Cam.ScreenToWorldPoint(new Vector3(_ScreenPos.x, _ScreenPos.y, Cam.nearClipPlane));
         _Origin.y  = 0;
     }
 }