//需要延时1.9s一下才执行reshuffleGame,发现用scheduleOnce不行,使用下面解决方案
//this.scheduleOnce(this.reshuffleGame(),1.9);
//reshuffleGame();
var self = this;
this.runAction(cc.Sequence.create( cc.DelayTime.create(1.9), cc.CallFunc.create(function () {
self.reshuffleGame();
})));
运行官方demo例子
1浏览器中运行:在js-tests目录下,执行命令cocos run -p web即可
2手机上运行:在js-tests目录下,执行命令cocos run -p android(需要配置好ant等)