Commit 59a6c521 authored by 章红平's avatar 章红平

提交

parent a2a9bcde
......@@ -59,6 +59,7 @@ export default class card extends cc.Component {
playDragon(cb){
return new Promise((resolve,reject)=>{
this.dragon.node.active=true;
this.dragon.node.scaleX=this.node.scaleX;
this.dragon.playAnimation("newAnimation", 1)
this.dragon.on(dragonBones.EventObject.COMPLETE,()=>{
if(cb){
......@@ -98,7 +99,7 @@ export default class card extends cc.Component {
.start();
}else{
cc.tween(this.node)
.to(0.25,{scaleX:0})
.to(0.25,{scaleX:0.3})
.call(()=>{
this.iconN.scaleX=-this.iconN.scaleX
this.wordLabel.node.scaleX=1
......
......@@ -916,7 +916,7 @@
{
"__type__": "cc.Node",
"_name": "New Label",
"_objFlags": 0,
"_objFlags": 512,
"_parent": {
"__id__": 16
},
......@@ -1531,7 +1531,7 @@
{
"__type__": "cc.Node",
"_name": "card",
"_objFlags": 0,
"_objFlags": 512,
"_parent": {
"__id__": 29
},
......@@ -3870,9 +3870,9 @@
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 246,
"g": 199,
"b": 166,
"a": 255
},
"_contentSize": {
......@@ -5349,7 +5349,7 @@
"__id__": 2
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 125
......@@ -5366,7 +5366,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 97.87,
"width": 0,
"height": 50.4
},
"_anchorPoint": {
......@@ -5418,8 +5418,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
......
This diff is collapsed.
......@@ -118,6 +118,7 @@ export class MyCocosSceneComponent extends cc.Component {
const node = cc.find('Canvas/middleLayer');
if (node) {
node.getComponent(cc.Label).string=str;
console.log(str);
} else {
console.log(str);
}
......
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