void Instantiate(string path) { RoomLayout roomLayout = Resources.Load <RoomLayout>(path); if (roomLayout != null) { Room room = new Room(0, 0); room.layout = roomLayout.entities; room.size = roomLayout.size; RoomLoader roomLoader = GameObject.Find("Room Spawn").GetComponent <RoomLoader>(); roomLoader.DestroyRoom(); roomLoader.Load(room); } }