static void Enable() { puzzleCreatorEditor = (PuzzleCreatorEditor)EditorWindow.GetWindow <PuzzleCreatorEditor>(); puzzleCreatorEditor.Init(); puzzleCreatorEditor.name = "Puzzle Creator Editor"; puzzleCreatorEditor.autoRepaintOnSceneChange = true; }
void OnGUI() { GUILayout.Label("Are you sure you want to reset the puzzle?"); if (GUILayout.Button("Yes")) { PuzzleCreatorEditor.ResetPuzzleConfirm(); this.Close(); } }