From bf3ec6620ee53ba1b9d4752cba8e0d7a9c22d94b Mon Sep 17 00:00:00 2001 From: Piegames <14054505+piegamesde@users.noreply.github.com> Date: Mon, 23 Apr 2018 01:54:04 +0200 Subject: [PATCH] Player spawnpoint --- Assets/Scripts/Generation/DungeonGenerator.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Scripts/Generation/DungeonGenerator.cs b/Assets/Scripts/Generation/DungeonGenerator.cs index 17eac4d..3ac62ac 100644 --- a/Assets/Scripts/Generation/DungeonGenerator.cs +++ b/Assets/Scripts/Generation/DungeonGenerator.cs @@ -202,6 +202,8 @@ public class DungeonGenerator { GenerateInterior(r); } + start.spawnpoints.Add(start.GetCenter()); + foreach (Vector2Int v in allDoors) { foreach (GenRoom r in rooms) { for (int x = -TUNNEL_THICKNESS; x < TUNNEL_THICKNESS; x++)