Esempio n. 1
0
 private void Awake()
 {
     Screen.SetResolution(600, 350, false);
     //btnSmallScreen.onClick.AddListener(OnFullScreenClick);
     this.Xscreen = (int)WindowMod.GetSystemMetrics(0);
     this.Yscreen = (int)WindowMod.GetSystemMetrics(1);
     // Screen.SetResolution(this.windowWidth, this.windowWidth, false);
     // this.screenPosition = new Rect((this.Xscreen - (float)this.windowWidth), (this.Yscreen - (float)this.windowHeight), (float)this.windowWidth, (float)this.windowHeight);
     this.screenPosition = new Rect(0, this.Yscreen - (float)this.windowHeight, this.Xscreen, (float)this.windowHeight);
 }