public static void ShowWindow(AS_SetupWindow caller) { //Show existing window instance. If one doesn't exist, make one. AS_WrongBuildTargetWindow window = (AS_WrongBuildTargetWindow)EditorWindow.GetWindow(typeof(AS_WrongBuildTargetWindow)); window.minSize = new Vector2(460, 130); window.name = "Web player platform active"; window.title = "Web player platform active"; window.caller = caller; window.position = new Rect(600, 400, window.minSize.x, window.minSize.y); }
void OnGUI() { GUILayout.BeginArea(new Rect(10, 10, 600, 500)); #if !UNITY_WEBPLAYER if (state == AS_SetupState.CredentialsAndPreferences) { CredentialsGUI(); } else if (state == AS_SetupState.Fields) { FieldsGUI(); } #else AS_WrongBuildTargetWindow.ShowWindow(this); #endif GUILayout.EndArea(); }