Beispiel #1
0
        public Sprite GetSprite(IWall wall, bool isCropped)
        {
            Vector3Int coords        = new Vector3Int(wall.X, wall.Y, wall.Z);
            Vector3Int rotatedCoords = WallTransformer.InverseRotateCoord(coords);

            return(WallCreator.DrawSpriteBorders(
                       sprites[rotatedCoords.z],
                       rotatedCoords.z,
                       new InmediateWallNeighbors(wall, OrientationManager.currentOrientation),
                       isCropped));
        }