public Vector3 drawCallOffset
{
get
{
#if UNITY_4_3 || UNITY_4_5 || UNITY_4_6 || UNITY_4_7
if (anchorCamera != null && mCam.isOrthoGraphic)
#else
if (anchorCamera != null && mCam.orthographic)
#endif
{
Vector2 size = GetWindowSize();
float pixelSize = (root != null) ? root.pixelSizeAdjustment : 1f;
float mod = (pixelSize / size.y) / mCam.orthographicSize;
bool x = false; // <--
bool y = false; // <--
if ((Mathf.RoundToInt(size.x) & 1) == 1) x = !x;
if ((Mathf.RoundToInt(size.y) & 1) == 1) y = !y;
return new Vector3
(x
? -mod
: 0f, y
? mod
: 0f
); }
return Vector3.zero;
}
}