Beispiel #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;
 }
Beispiel #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;
     }
 }