public static void PositionWindow()
 {
     if (BoltDebugStartSettings.startClient || BoltDebugStartSettings.startServer)
     {
         if (BoltDebugStartSettings.< > f__mg$cache0 == null)
         {
             BoltDebugStartSettings.< > f__mg$cache0 = new BoltDebugStartSettings.EnumWindowsProc(BoltDebugStartSettings.Window);
         }
         BoltDebugStartSettings.EnumWindows(BoltDebugStartSettings.< > f__mg$cache0, IntPtr.Zero);
         if (BoltDebugStartSettings.unityHandle.Wrapper != null)
         {
             int width          = Screen.width;
             int height         = Screen.height;
             int x              = 0;
             int y              = 0;
             int systemMetrics  = BoltDebugStartSettings.GetSystemMetrics(0);
             int systemMetrics2 = BoltDebugStartSettings.GetSystemMetrics(1);
             if (BoltDebugStartSettings.startServer)
             {
                 x = systemMetrics / 2 - width / 2;
                 y = systemMetrics2 / 2 - height / 2;
             }
             else
             {
                 int num = BoltDebugStartSettings.windowIndex % 4;
                 if (num != 1)
                 {
                     if (num != 2)
                     {
                         if (num == 3)
                         {
                             x = systemMetrics - width;
                             y = systemMetrics2 - height;
                         }
                     }
                     else
                     {
                         y = systemMetrics2 - height;
                     }
                 }
                 else
                 {
                     x = systemMetrics - width;
                 }
             }
             BoltDebugStartSettings.SetWindowPos(BoltDebugStartSettings.unityHandle.Handle, BoltDebugStartSettings.HWND.Top, x, y, width, height, BoltDebugStartSettings.SWP.NOSIZE);
         }
     }
 }
 private static extern bool EnumWindows(BoltDebugStartSettings.EnumWindowsProc callback, IntPtr extraData);