当前位置 : 主页 > 手机开发 > 其它 >

cocos-JS开发笔记集合

来源:互联网 收集:自由互联 发布时间:2021-06-13
//需要延时1.9s一下才执行reshuffleGame,发现用scheduleOnce不行,使用下面解决方案 //this.scheduleOnce(this.reshuffleGame(),1.9); //reshuffleGame(); var self = this ; this .runAction(cc.Sequence.create( cc.DelayTime.cre

//需要延时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();

})));

网友评论