• Runtimes
  • [Libgdx]How can I load two json files at the same time?

Runtime:Libgdx
The designer who using spine want to have two role at the same time.
So they export two json file for me,But I can't find any way to load two json files at the same time.

used to be:

//Constant.COMIC_ACTION_DEFAULT is my json path , was like "/path/skeleton.json"
SkeletonData skeletonData = json.readSkeletonData(Gdx.files.absolute(Constant.COMIC_ACTION_DEFAULT));

But now I got two json files...

Need help.

Related Discussions
...
  • Изменено
SkeletonData skeletonData1 = json.readSkeletonData(Gdx.files.internal("skeleton1.json"));
SkeletonData skeletonData2 = json.readSkeletonData(Gdx.files.internal("skeleton2.json"));