Added spawn points + logic
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class GameHandler : MonoBehaviour
|
||||
{
|
||||
private MapGenManager mapGen;
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
|
||||
|
||||
|
||||
|
||||
void Awake()
|
||||
{
|
||||
mapGen = GetComponent<MapGenManager>();
|
||||
@@ -30,7 +33,6 @@ public class GameHandler : MonoBehaviour
|
||||
foreach (var room in mapGen.GridToRoom)
|
||||
{
|
||||
var rh = room.Value.GetComponent<RoomHandler>();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user