static void ShowPresentationWindow() { EditorApplication.update -= ShowPresentationWindow; //If the tutorial isn't done then open the window if (EditorPrefs.HasKey("TBS_DP") == false) { EditorPrefs.SetInt("TBS_DP", 1); TBS_PresentationWindow.InitializePresentationWindow(); TBS_PresentationWindow.presentationWindow.Focus(); } }
public static void InitializePresentationWindow() { // Get existing open window or if none, make a new one: presentationWindow = (TBS_PresentationWindow)EditorWindow.GetWindowWithRect(typeof(TBS_PresentationWindow), new Rect(0, 0, 512, 600), true, "Package Presentation"); presentationWindow.Show(); }