コード例 #1
0
ファイル: Pivot.cs プロジェクト: muramasa2402/DroNeS-LLV
 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;
 }
コード例 #2
0
ファイル: Selectable.cs プロジェクト: muramasa2402/DroNeS-LLV
 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;
     }
 }