示例#1
0
 public void UpdateRay()
 {
     if (null == mDragable || mDragable.Equals(null))
     {
         return;
     }
     if (mLastMousePos != Input.mousePosition || Vector3.SqrMagnitude(mLastCameraPos - Camera.main.transform.position) > 1f)
     {
         mLastMousePos  = Input.mousePosition;
         mLastCameraPos = Camera.main.transform.position;
         mPutDownEnable = mDragable.OnDragging(PeCamera.mouseRay);
     }
 }