Beispiel #1
0
        private static ITexture TryLoadTextureAtlasPart(string path)
        {
            if (!AssetBundle.Current.FileExists(path))
            {
                return(null);
            }
            var data    = InternalPersistence.Instance.ReadObject <TextureAtlasElement.Params>(path);
            var texture = new TextureAtlasElement(data);

            return(texture);
        }
Beispiel #2
0
        private static ITexture TryLoadTextureAtlasPart(string path)
        {
            if (!AssetBundle.Current.FileExists(path))
            {
                return(null);
            }
            var data    = TextureAtlasElement.Params.ReadFromBundle(path);
            var texture = new TextureAtlasElement(data);

            return(texture);
        }