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