zhaoweihao

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.
zhaoweihao
  • Сообщения: 6

Nate

SkeletonData skeletonData1 = json.readSkeletonData(Gdx.files.internal("skeleton1.json"));
SkeletonData skeletonData2 = json.readSkeletonData(Gdx.files.internal("skeleton2.json"));
Аватара пользователя
Nate

Nate
  • Сообщения: 9288


Вернуться в Runtimes