Beispiel #1
0
    private Vector3 RandomPos()
    {
        RoomCoord coord = GetRandomCoord(_currCoordQueue);
        Vector3   pos   = new Vector3(coord._x, 0, coord._y);

        return(pos);
    }
Beispiel #2
0
    private RoomCoord GetRandomCoord(Queue <RoomCoord> coords)
    {
        RoomCoord randomCoord = coords.Dequeue();

        coords.Enqueue(randomCoord);
        return(randomCoord);
    }