void Start() { UFE.SetLanguage("English"); Rect newPixelInset = guiTexture.pixelInset; newPixelInset.width *= ((float)Screen.width / 1280); newPixelInset.height *= ((float)Screen.height / 720); guiTexture.pixelInset = newPixelInset; startButtonRect = new Rect(0, 0, startButtonStyle.normal.background.width, startButtonStyle.normal.background.height); optionsButtonRect = new Rect(0, 0, optionsButtonStyle.normal.background.width, optionsButtonStyle.normal.background.height); creditsButtonRect = new Rect(0, 0, creditsButtonStyle.normal.background.width, creditsButtonStyle.normal.background.height); startButtonRect = SetResolution(startButtonRect, 260); optionsButtonRect = SetResolution(optionsButtonRect, 180); creditsButtonRect = SetResolution(creditsButtonRect, 100); /*startButtonRect.width *= ((float)Screen.width/1280); * startButtonRect.height *= ((float)Screen.height/720); * startButtonRect.x = ((float)Screen.width/2) - (startButtonRect.width/2); * startButtonRect.y = Screen.height - (260 * ((float)Screen.height/720)); * * optionsButtonRect.width *= ((float)Screen.width/1280); * optionsButtonRect.height *= ((float)Screen.height/720); * optionsButtonRect.x = ((float)Screen.width/2) - (optionsButtonRect.width/2); * optionsButtonRect.y = Screen.height - (180 * ((float)Screen.height/720)); * * creditsButtonRect.width *= ((float)Screen.width/1280); * creditsButtonRect.height *= ((float)Screen.height/720); * creditsButtonRect.x = ((float)Screen.width/2) - (creditsButtonRect.width/2); * creditsButtonRect.y = Screen.height - (100 * ((float)Screen.height/720));*/ }