void OnGUI() { GUILayout.Label("Web player platform active", EditorStyles.boldLabel); GUILayout.Label("You are currently using the Web Player platform." + "\n\nTo use the Online Account System window please switch platform to\n" + "PC, Mac and Linux Standalone from File->Build Settings.."); GUILayout.Label("", GUILayout.Height(8)); GUILayout.BeginHorizontal(); if (GUILayout.Button("Switch my Active Platform", GUILayout.Width(300))) { EditorUserBuildSettings.SwitchActiveBuildTarget(EditorUserBuildSettings.selectedStandaloneTarget); if (caller != null) { caller.Repaint(); caller.Show(); } this.Close(); } if (GUILayout.Button("Cancel", GUILayout.Width(100))) { this.Close(); if (caller != null) { caller.Close(); } } GUILayout.EndHorizontal(); }
void OnGUI() { GUI.Label(new Rect(10, 10, 450, 100), message); if (GUI.Button(new Rect(this.position.width / 2 - 50, this.position.height - 40, 100, 25), "OK")) { this.Close(); if (caller != null) { if (stateToLoad == AS_SetupState.Done) { caller.Close(); } else { caller.state = stateToLoad; caller.Repaint(); caller.Show(); } } } }