-
Creator 版本:2.0.9
-
目标平台: ios,web ,android
-
详细报错信息,包含调用堆栈:
-
重现方式:
-
之前哪个版本是正常的 :
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :
-
编辑器之前是否有其它报错 :
-
出现概率:
-
额外线索:
代码示例,coin.runAction(new cc.Sequence(
new cc.DelayTime(1 + t * resultCount),
new cc.CallFunc(function () {
if (coin && self.game) {
coin.parent = self.game.getChildByName(“all_pot”).getChildByName(“pot_1”);
fb.playEffect(“game_flycoin”);
}
coin.stopAllActions()
for (var i = 1; i <= 3; i++) {
// if(self.game){
self.game.getChildByName(“all_pot”).getChildByName(“pot_1”).getChildByName(“coin” + i).active = false;
// }
}
}),
new cc.MoveTo(t, endpos),
new cc.CallFunc(function () {
showResultCount += 1;
fb.UI_destroyNode(coin);
if (showResultCount == data.result.length && self.game) {
self.game.getChildByName(“all_pot”).active = false;
self.game.getChildByName(“all_pot”).getChildByName(“pot_1”).active = false;
self.game.getChildByName(“all_pot”).getChildByName(“pot_2”).active = false;
self.game.getChildByName(“all_pot”).getChildByName(“pot_3”).active = false;
self.game.getChildByName(“all_pot”).getChildByName(“pot_1”).getChildByName(“stake”).getComponent(cc.Label).string = 0;
self.game.getChildByName(“all_pot”).getChildByName(“pot_2”).getChildByName(“stake”).getComponent(cc.Label).string = 0;
self.game.getChildByName(“all_pot”).getChildByName(“pot_3”).getChildByName(“stake”).getComponent(cc.Label).string = 0;
self.game.getChildByName(“all_pot”).getChildByName(“pot_1”).getChildByName(“stake”).removeAllChildren();
self.game.getChildByName(“all_pot”).getChildByName(“pot_2”).getChildByName(“stake”).removeAllChildren();
self.game.getChildByName(“all_pot”).getChildByName(“pot_3”).getChildByName(“stake”).removeAllChildren();
}
}))
);