Commit 43bda71e authored by liujiaxin's avatar liujiaxin

1

parent 9c309164
......@@ -259,7 +259,7 @@ export default class PengPeng extends cc.Component {
currentArmature.dispose()
}
}
dragonDisplay.dragonAsset = null;
dragonDisplay.dragonAtlasAsset = null;
dragonDisplay.armatureName = "";
......@@ -268,6 +268,7 @@ export default class PengPeng extends cc.Component {
const [texture, atlasJson, dragonBonesJson ] = assets;
console.log(texture, atlasJson, dragonBonesJson)
let atlas = atlasJson
if (atlasJson.constructor.name == 'cc_TextAsset') {
atlas = new dragonBones.DragonBonesAtlasAsset();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment