获取TextureAtlas
(String name)
| 1867 | * 获取TextureAtlas |
| 1868 | */ |
| 1869 | public TextureAtlas getTextureAtlas(String name) { |
| 1870 | TextureAtlas textureAtlas; |
| 1871 | if (assets.isLoaded(name, TextureAtlas.class)) { |
| 1872 | textureAtlas = assets.get(name, TextureAtlas.class); |
| 1873 | } else { |
| 1874 | assets.load(name, TextureAtlas.class); |
| 1875 | assets.finishLoading(); |
| 1876 | textureAtlas = assets.get(name, TextureAtlas.class); |
| 1877 | } |
| 1878 | return textureAtlas; |
| 1879 | } |
| 1880 | |
| 1881 | /** |
| 1882 | * 获取TextureRegion |