Commit b1057fb4 authored by ffperes's avatar ffperes

Growing Tree Algorithm working

parent bd97198f
......@@ -23,7 +23,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Assembly-CSharp.csproj
Policies = $0
$0.TextStylePolicy = $1
......
<Properties>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" PreferredExecutionTarget="MonoDevelop.Default" />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.Workbench ActiveDocument="Assets\Scripts\Grid.cs">
<Files>
<File FileName="Assets\Scripts\Grid.js" Line="72" Column="17" />
<File FileName="Assets\Scripts\Grid.cs" Line="18" Column="5" />
<File FileName="Assets\Scripts\Cell.cs" Line="8" Column="2" />
<File FileName="Assets\Scripts\Grid.cs" Line="109" Column="3" />
<File FileName="Assets\Scripts\Grid.js" Line="1" Column="1" />
<File FileName="Assets\Scripts\Cell.cs" Line="1" Column="1" />
<File FileName="Assets\Scripts\CellScript.js" Line="1" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>
......
......@@ -51,11 +51,11 @@ public class Grid : MonoBehaviour {
public List<Vector3> Directions; //* To assigned in Inspector
void FindNext (){
/*if(Set.Count == 0){
if(Set.Count == 0){
Debug.Log("We're done! Took " + Time.timeSinceLevelLoad + " seconds for a " + GridSize.x + " by " + GridSize.z + " grid.");
CancelInvoke("FindNext");
return;
}*/
}
Transform previous = Set [0];
Cell pScript = Set [0].GetComponent<Cell> ();
......@@ -128,7 +128,7 @@ public class Grid : MonoBehaviour {
bool start = true;
void OnGUI(){
GUILayout.Label ("[Space] to create maze; \n[Shift] to step though maze, \n[F1] to");
GUILayout.Label ("[Space] to create maze; \n[Shift] to step though maze, \n[F1] to restart");
if (!start) {
return;
}
......
Base path: C:/Program Files/Unity/Editor/Data
Pipe name: \\.\pipe\UnityShaderCompiler-32bit-1-3104
Pipe name: \\.\pipe\UnityShaderCompiler-32bit-1-1888
Cmd: getPlatforms
Unhandled exception: Readfile from pipe failed. GLE=The pipe has been ended.
......
Base path: C:/Program Files/Unity/Editor/Data
Pipe name: \\.\pipe\UnityShaderCompiler-64bit-1-3104
Pipe name: \\.\pipe\UnityShaderCompiler-64bit-1-1888
Cmd: getPlatforms
Cmd: compileSnippet
api=4 type=0 insize=541 outsize=3533 kw=SHADOWS_DEPTH pd= ok=1
Cmd: compileSnippet
api=4 type=1 insize=541 outsize=453 kw=SHADOWS_DEPTH pd= ok=1
Cmd: compileSnippet
api=4 type=0 insize=6924 outsize=3663 kw=DIRECTIONAL SHADOWS_OFF LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF pd= ok=1
Cmd: compileSnippet
api=4 type=1 insize=6924 outsize=1314 kw=DIRECTIONAL SHADOWS_OFF LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF pd= ok=1
Cmd: compileSnippet
api=4 type=0 insize=3695 outsize=2753 kw=DIRECTIONAL pd= ok=1
Cmd: compileSnippet
api=4 type=1 insize=3695 outsize=1168 kw=DIRECTIONAL pd= ok=1
Cmd: compileSnippet
api=4 type=0 insize=6924 outsize=4053 kw=DIRECTIONAL SHADOWS_SCREEN LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF pd= ok=1
Cmd: compileSnippet
api=4 type=1 insize=6924 outsize=1631 kw=DIRECTIONAL SHADOWS_SCREEN LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF pd= ok=1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment