manualHeight = Mathf.Max(2, Screen.height);
//manualWidth = Mathf.Max(2, Screen.width);
float size = 2f / manualHeight * ((float)manualHeight / 768);
float sizeX = (float)Screen.width / 1024 * 2f / manualHeight;
Vector3 ls = mTrans.localScale;
if (!Mathf.Approximately(ls.x, sizeX) ||
!Mathf.Approximately(ls.y, size) ||
!Mathf.Approximately(ls.z, size))
{
mTrans
.localScale = new Vector3
(sizeX, size, size
); }