public void UpdateScreenSpace(Rect screenSpace) { float num = 387f; float num2 = 153f; float num3 = 50f; mInspectGroup.y = num2 + (GameHome.ScreenSpace.height - num2 - num3 - num) / 2f; mViewToolsGroup = new Rect(screenSpace.width / 2f - 121.5f, screenSpace.height - 113f, 243f, 93f); mSuitInspector.UpdateScreenSpace(new Rect(0f, 0f, mInspectGroup.width, mInspectGroup.height)); }
public IEnumerator UpdateScreenSpace() { yield return(new WaitForEndOfFrame()); screenSpace = new Rect(0f, 0f, Screen.width, Screen.height); mSuitInspector.UpdateScreenSpace(new Rect(150f, 60f, screenSpace.width - 300f, screenSpace.height - 120f)); bFullScreen = Screen.fullScreen; fObjectOffsetX = screenSpace.height / 600f; ScrollFactor = (screenSpace.height * 4.5f - screenSpace.width) / 8f; }