예제 #1
0
        public Texture2D CreateLand(int index)
        {
            Texture2D texture = _landCache[index];

            if (texture != null)
            {
                return(texture);
            }

            texture = _textures.CreateTexture(index);

            if (texture == null)
            {
                return(_missingTexture);
            }

            return(_landCache[index] = texture);
        }