public void ResolutionChoose(bool right) { PlayerPreference.ResolutionIndex += right? 1: -1; Vector2Int _resolution = PlayerPreference.Resolution; resolutionText.text = string.Format("{0} x {1}", _resolution.x, _resolution.y); PlayerPreference.ApplyResolution(); }
public void ToggleFullscreenWindowed() { PlayerPreference.Fullscreen = !PlayerPreference.Fullscreen; fullscreenMultiLan.ChangeId(PlayerPreference.Fullscreen ? 8 : 9); PlayerPreference.ApplyResolution(); }