public BaseTileData(BaseRoom room, GameObject currTile, string name, Guid groupID, int respawnTime) { RoomType = room != null?room.GetRoomType() : RoomType.None; RotationY = currTile != null ? currTile.transform.localEulerAngles.y : 0; Name = name; if (groupID != Guid.Empty) { GroupID = groupID.ToString(); } RespawnTime = respawnTime; }