private void Update() { if (this.m_belongedFormScript != null && this.m_belongedFormScript.IsClosed()) { return; } this.GetPivotScreenPosition(); if (this.m_lastPivotScreenPosition != this.m_pivotScreenPosition) { if (this.m_renderCamera != null) { if (this.m_renderCamera.orthographic) { for (int i = 0; i < this.m_3DGameObjects.get_Count(); i++) { if (this.m_3DGameObjects.get_Item(i).m_bindPivot) { this.ChangeScreenPositionToWorld(this.m_3DGameObjects.get_Item(i).m_gameObject, ref this.m_pivotScreenPosition); } } } else { float num = this.m_pivotScreenPosition.x / (float)Mathf.Max(Screen.width, Screen.height); num = num * 2f - 1f; this.m_renderCamera.rect = new Rect(0f, 0f, 1f, 1f); this.m_renderCamera.ResetAspect(); MMGame_Math.SetOffsetX(this.m_renderCamera, num); } } this.m_lastPivotScreenPosition = this.m_pivotScreenPosition; } }