Ejemplo n.º 1
0
        public DaggerfallFontPlus GetHQPixelFont(HQPixelFonts pixelFont)
        {
            switch (pixelFont)
            {
            case HQPixelFonts.Petrock_32:
                if (fontPetrock32 == null)
                {
                    fontPetrock32 = new DaggerfallFontPlus(Resources.Load <Texture2D>("Kingthings-Petrock-Light-PixelFont"), 16, 16, 32);
                }
                return(fontPetrock32);
            }

            return(null);
        }
        public DaggerfallFontPlus GetHQPixelFont(HQPixelFonts pixelFont)
        {
            switch (pixelFont)
            {
                case HQPixelFonts.Petrock_32:
                    if (fontPetrock32 == null)
                        fontPetrock32 = new DaggerfallFontPlus(Resources.Load<Texture2D>("Kingthings-Petrock-Light-PixelFont"), 16, 16, 32);
                    return fontPetrock32;
            }

            return null;
        }