MenuElement.changeResolution C# (CSharp) Method

changeResolution() public method

public changeResolution ( Button, button ) : void
button Button,
return void
    public void changeResolution(Button button)
    {
        if (button.name.Equals("800x600Button")) {
            if (Application.isEditor) {
                Debug.Log ("800x600");
            }
            Screen.SetResolution (800, 600, true);
        }
        //...
    }