Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
##################
# Unity ignores:
#
# !!! WARNING !!!
#
# � you MUST convert Unity to using Metafiles *before* you start using this
# .gitignore file, or you WILL lose data!
#

# OS X only:
.DS_Store
*.swp
*.Trashes

# All platforms:
Library
Temp
obj
*.csproj
*.pidb
*.unityproj
*.sln
*.userprefs
*.suo
*.pdb
playing1/obj
playing1server/bin

Assembly-CSharp*
deleteme*

# cruft and test code:
2DGameplayTutorialProject
CacheServer
NGUITest2
Thumbs.db
hwd082012
square.x3d
white disk.png
examples
~*.xls*
RECOVER_master_cs5*
PackageExperimenter
9 changes: 9 additions & 0 deletions Unity Project/Assets/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions Unity Project/Assets/Editor/MapGeneratorEditor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using UnityEditor;
using UnityEngine;
using System.Collections;

[CustomEditor(typeof(MapGenerator))]
public sealed class MapGeneratorEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();

var mapGenerator = (MapGenerator)target;
GUILayout.BeginHorizontal();

if (GUILayout.Button("Generate"))
{
mapGenerator.GenerateMap();
}
GUI.enabled = mapGenerator.IsGenerated;
if (GUILayout.Button("Clear"))
{
mapGenerator.ClearMap();
}
if (GUILayout.Button("Save Meshes"))
{
mapGenerator.SaveMeshes();
}
GUI.enabled = true;
GUILayout.EndHorizontal();
}
}
12 changes: 12 additions & 0 deletions Unity Project/Assets/Editor/MapGeneratorEditor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading