Пример #1
0
    public Texture2D GetMapImage(int id)
    {
        byte[]    byteArray = File.ReadAllBytes(URLs.GetMap(id));
        Texture2D texture   = new Texture2D(2, 2);

        texture.LoadImage(byteArray);
        return(texture);
    }