Commit d5a8d729 authored by asdf's avatar asdf

结束之后不会弹welldone的bug

parent ec126db5
...@@ -19,6 +19,11 @@ cc.Class({ ...@@ -19,6 +19,11 @@ cc.Class({
this.initNodes(); this.initNodes();
this.initSceneData(); this.initSceneData();
this.initSize(); this.initSize();
window.addEventListener('onblur', function (e) {
console.log('onblur');
});
}, },
initNodes() { initNodes() {
this.layerTrain = this.layerCoach.parent; this.layerTrain = this.layerCoach.parent;
...@@ -211,7 +216,6 @@ cc.Class({ ...@@ -211,7 +216,6 @@ cc.Class({
initData() { initData() {
// 所有全局变量 默认都是null // 所有全局变量 默认都是null
this.initRightChoose();
}, },
initRightChoose() { initRightChoose() {
...@@ -255,6 +259,7 @@ cc.Class({ ...@@ -255,6 +259,7 @@ cc.Class({
}, },
playAudioTrain() { playAudioTrain() {
this.initRightChoose();
window.isPlayEnter = false; window.isPlayEnter = false;
this.tTween && this.tTween.stop(); this.tTween && this.tTween.stop();
this.tTween = cc.tween(this.layerTrain) this.tTween = cc.tween(this.layerTrain)
......
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