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); }
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); }