void OnGUI (){ if(dark) GUI.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), darkTexture); } void Update ()