var pic1 = cc.find("Canvas/puke/hu");
var run = cc.callFunc(function() {
cc.loader.loadRes("longhu/card", cc.SpriteAtlas, function (err, atlas) {
let frame = atlas.getSpriteFrame('card_player'+10);
pic1.getComponent(cc.Sprite).spriteFrame = frame;
}); },this)
//pic1.runAction(cc.sequence(actionBy1 , run, actionByBack ) ); pic1.runAction(cc.sequence(cc.rotateBy(0,0,-180),cc.rotateBy(0.5,0,90), run, cc.rotateBy(0.5,0,90)) );
//翻牌动画
showFanPaiAction:function(pos,valueArr,card_type){
var self = this;
var func = cc.callFunc(function(){
for(let i = 0;i < valueArr.length; i++){
self.setCard(pos,i+1,valueArr[i]);
}
self.setCardType(pos,card_type);
})
for(let i = 0;i < valueArr.length; i++){
// this.cards[pos-1][i].runAction(cc.sequence(cc.rotateBy(0,0,-180),cc.rotateBy(0.5,0,90),cc.rotateBy(0.5,0,90)));
this.cards[pos-1][i].runAction(cc.sequence(cc.rotateBy(0,0,-180),cc.rotateBy(0.5,0,180)));
}
var seqAct = cc.sequence(cc.delayTime(0.1),func);
this.node.runAction(seqAct);
},