示例#1
0
 void ReconfigureWindows()
 {
     ratio = new Vector2(Screen.width / standardSize.x, Screen.height / standardSize.y);
     miniMap.localBounds = new Rect(
         ratio.x * miniMapSize.x,
         ratio.y * miniMapSize.y,
         ratio.x * miniMapSize.width,
         ratio.y * miniMapSize.height);
     miniMap.SetSize();
     select.ResizeSelectionWindow(ratio);
     lastWindowSize = new Vector2(Screen.width, Screen.height);
     Log.d("Reconfiguring Windows");
 }