예제 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        RoomCreator creator = (RoomCreator)target;

        if (GUILayout.Button("Generate room"))
        {
            creator.GenerateRoom();
        }
    }