Skip to content
Permalink
567642b36c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (17 sloc) 427 Bytes
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(MazeGenerator))]
public class GeneratorEditor : Editor
{
public override void OnInspectorGUI()
{
MazeGenerator myTarget = (MazeGenerator)target;
base.OnInspectorGUI();
if (GUILayout.Button("Generate maze"))
{
myTarget.GenerateMazes();
}
}
}