Commit ac7d1526 authored by 范雪寒's avatar 范雪寒

test:

parent 201c86fd
...@@ -995,20 +995,19 @@ cc.Class({ ...@@ -995,20 +995,19 @@ cc.Class({
let armatures = json["armature"]; let armatures = json["armature"];
// console.log('armatures: ', armatures); // console.log('armatures: ', armatures);
let armatureNames = []; let armatureNames = [];
await asyncDelay(3);
this.log('汪汪汪2'); this.log('汪汪汪2');
await asyncDelay(3);
for (let i = 0; i < armatures.length; i++) { for (let i = 0; i < armatures.length; i++) {
armatureNames.push(armatures[i].name); armatureNames.push(armatures[i].name);
} }
await asyncDelay(3);
this.log('汪汪汪3' + JSON.stringify(armatureNames)); this.log('汪汪汪3' + JSON.stringify(armatureNames));
await asyncDelay(3);
// console.log('armatureNames: ', armatureNames); // console.log('armatureNames: ', armatureNames);
if (armatureNames.length > 0) { if (armatureNames.length > 0) {
await asyncDelay(3);
this.log('汪汪汪4'); this.log('汪汪汪4');
await asyncDelay(3); await asyncDelay(3);
let defaultArmatureName = armatureNames[0]; let defaultArmatureName = armatureNames[0];
this.log('汪汪汪4.1'); this.log('汪汪汪4.1: ' + dragonDisplay.toString());
await asyncDelay(3); await asyncDelay(3);
dragonDisplay.armatureName = defaultArmatureName; dragonDisplay.armatureName = defaultArmatureName;
this.log('汪汪汪4.2'); this.log('汪汪汪4.2');
...@@ -1025,15 +1024,15 @@ cc.Class({ ...@@ -1025,15 +1024,15 @@ cc.Class({
animationNames.push(animations[i].name); animationNames.push(animations[i].name);
} }
await asyncDelay(3);
this.log('汪汪汪4.5'); this.log('汪汪汪4.5');
await asyncDelay(3);
console.log('animationNames: ', animationNames.toString()) console.log('animationNames: ', animationNames.toString())
dragonDisplay.playAnimation('normal', -1); dragonDisplay.playAnimation('normal', -1);
dragonDisplay.animaNames = animationNames; dragonDisplay.animaNames = animationNames;
animaNode.y -= 30; animaNode.y -= 30;
await asyncDelay(3);
this.log('汪汪汪5'); this.log('汪汪汪5');
await asyncDelay(3);
if (animaNode.height) { if (animaNode.height) {
animaNode.scale = 376 / animaNode.height; animaNode.scale = 376 / animaNode.height;
......
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