Пример #1
0
        public static int VertexOrder(int x, int y, TileSubLayer layer)
        {
            Vector2Int rotatedCoords = VertexTransfomer.RotateVertex(new Vector2Int(x, y));

            return((rotatedCoords.x + rotatedCoords.y) * 20 + ((int)layer * 2) + 1);
        }