private Vector3 RandomPos() { RoomCoord coord = GetRandomCoord(_currCoordQueue); Vector3 pos = new Vector3(coord._x, 0, coord._y); return(pos); }
private RoomCoord GetRandomCoord(Queue <RoomCoord> coords) { RoomCoord randomCoord = coords.Dequeue(); coords.Enqueue(randomCoord); return(randomCoord); }