Commit 9d7c7ff5 authored by liujiaxin's avatar liujiaxin

1

parent ae25049e
...@@ -268,7 +268,7 @@ export default class PengPeng extends cc.Component { ...@@ -268,7 +268,7 @@ export default class PengPeng extends cc.Component {
const [texture, atlasJson, dragonBonesJson ] = assets; const [texture, atlasJson, dragonBonesJson ] = assets;
console.log(texture.constructor.name, atlasJson.constructor.name, dragonBonesJson.constructor.name) console.log(texture ? texture.constructor.name : texture, atlasJson ? atlasJson.constructor.name : atlasJson, dragonBonesJson? dragonBonesJson.constructor.name: dragonBonesJson)
console.log(1) console.log(1)
let atlas = atlasJson let atlas = atlasJson
if (atlasJson.constructor.name == 'cc_TextAsset') { if (atlasJson.constructor.name == 'cc_TextAsset') {
......
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