private void EditWindowsSizeW(int _new_window_width, bool _size_check = true)
 {
     if (ScreenSizeManager.IsZoomed(this.window_handle))
     {
         int _width  = Mathf.Max(_new_window_width, 480);
         int _height = (int)((double)_width / 480.0 * 270.0);
         this.Resize(_width, _height);
     }
     else
     {
         int        num1 = _new_window_width;
         int        num2 = 480;
         Resolution currentResolution1 = Screen.get_currentResolution();
         // ISSUE: explicit reference operation
         int num3   = ((Resolution)@currentResolution1).get_width() - this.frame_width;
         int _width = Mathf.Clamp(num1, num2, num3);
         int num4   = (int)((double)_width / 480.0 * 270.0);
         if (_size_check)
         {
             int        num5 = num4;
             Resolution currentResolution2 = Screen.get_currentResolution();
             // ISSUE: explicit reference operation
             int num6 = ((Resolution)@currentResolution2).get_height() - this.frame_height;
             if (num5 > num6)
             {
                 this.EditWindowSizeH(num4, false);
                 return;
             }
         }
         this.Resize(_width, num4);
     }
 }
 private void LateUpdate()
 {
     ScreenSizeManager.GetClientRect(this.window_handle, out this.client_rect);
     this.next_client_width  = this.client_rect.right - this.client_rect.left;
     this.next_client_height = this.client_rect.bottom - this.client_rect.top;
     if (this.current_client_width != this.next_client_width && this.current_client_height != this.next_client_height)
     {
         if (Mathf.Abs(this.next_client_width - this.current_client_width) >= Mathf.Abs(this.next_client_height - this.current_client_height))
         {
             this.EditWindowsSizeW(this.next_client_width, true);
         }
         else
         {
             this.EditWindowSizeH(this.next_client_height, true);
         }
     }
     else if (this.current_client_width != this.next_client_width)
     {
         this.EditWindowsSizeW(this.next_client_width, true);
     }
     else
     {
         if (this.current_client_height == this.next_client_height)
         {
             return;
         }
         this.EditWindowSizeH(this.next_client_height, true);
     }
 }
 private void Resize(int _width, int _height)
 {
     this.current_client_width  = _width;
     this.current_client_height = _height;
     ScreenSizeManager.GetWindowRect(this.window_handle, out this.window_rect);
     ScreenSizeManager.MoveWindow(this.window_handle, this.window_rect.left, this.window_rect.top, _width + this.frame_width, _height + this.frame_height, 1);
 }
        private void Awake()
        {
            this.window_handle = ScreenSizeManager.FindWindow((string)null, Application.get_productName());
            ScreenSizeManager.GetClientRect(this.window_handle, out this.client_rect);
            this.next_client_width  = this.current_client_width = this.client_rect.right - this.client_rect.left;
            this.next_client_height = this.current_client_height = this.client_rect.bottom - this.client_rect.top;
            ScreenSizeManager.GetWindowRect(this.window_handle, out this.window_rect);
            int num1 = this.window_rect.right - this.window_rect.left;
            int num2 = this.window_rect.bottom - this.window_rect.top;

            this.frame_width  = num1 - this.current_client_width;
            this.frame_height = num2 - this.current_client_height;
        }