From 9a3032a61acb879a96a103962d55ed5714cfd17d Mon Sep 17 00:00:00 2001 From: Saibotk Date: Thu, 26 Apr 2018 00:56:14 +0200 Subject: [PATCH 1/2] Fix im GenerationProcessor stein neben wand ging nicht gut --- Assets/Scripts/Generation/GenerationProcessor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Generation/GenerationProcessor.cs b/Assets/Scripts/Generation/GenerationProcessor.cs index 3742695..d50ef1c 100644 --- a/Assets/Scripts/Generation/GenerationProcessor.cs +++ b/Assets/Scripts/Generation/GenerationProcessor.cs @@ -84,16 +84,16 @@ public class GenerationProcessor { switch ( type ) { case ExtendedTileType.BorderSingle: Vector2Int toCheck = v + new Vector2Int(0, -1); - if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type != Room.TileType.WALL) + if(tiles.ContainsKey(toCheck) && tiles[toCheck].type != Room.TileType.WALL) return 0; toCheck = v + new Vector2Int(-1, 0); - if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type != Room.TileType.WALL) + if(tiles.ContainsKey(toCheck) && tiles[toCheck].type != Room.TileType.WALL) return 270; toCheck = v + new Vector2Int(0, 1); - if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type != Room.TileType.WALL) + if(tiles.ContainsKey(toCheck) && tiles[toCheck].type != Room.TileType.WALL) return 180; toCheck = v + new Vector2Int(1, 0); - if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type != Room.TileType.WALL) + if(tiles.ContainsKey(toCheck) && tiles[toCheck].type != Room.TileType.WALL) return 90; break; case ExtendedTileType.BorderInner: From 0b855d86cce931b36d09a8fe2555465db5d34d70 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Thu, 26 Apr 2018 01:19:56 +0200 Subject: [PATCH 2/2] Fix BuildScript --- Assets/Scripts/Editor/BuildScript.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Editor/BuildScript.cs b/Assets/Scripts/Editor/BuildScript.cs index 872c8fe..65431c0 100644 --- a/Assets/Scripts/Editor/BuildScript.cs +++ b/Assets/Scripts/Editor/BuildScript.cs @@ -9,7 +9,7 @@ using System.Text; public class BuildSrcipt { - static string[] scenes = { "Assets/Scenes/CodeDEV.unity", "Assets/Scenes/TitleScene.unity" }; + static string[] scenes = { "Assets/Scenes/TitleScene.unity", "Assets/Scenes/CodeDEV.unity" }; static string name = "DungeonDrifter"; [MenuItem("Build/Build WebGL")]