Commit 540e7d98 authored by linzhiguo's avatar linzhiguo

+ 游戏结束(框架代码)

parent 3a5a2084
......@@ -5365,8 +5365,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
379.412,
-756.431,
1656.989,
-2046.94,
0,
0,
0,
......@@ -6430,7 +6430,7 @@
"ctor": "Float64Array",
"array": [
640,
-69.655,
-1346.376,
0,
0,
0,
......
......@@ -518,12 +518,13 @@ cc.Class({
this._comeon.active = true;
playDragonBoneAnimation(this._comeon, 'newAnimation', 1, ()=>{
this._comeon.active = false;
this.gameEnd();
});
}
else{
this.playAudioByName('victory');
this._flower.active = true;
playDragonBoneAnimation(this._flower, 'normal');
playDragonBoneAnimation(this._flower, 'normal', 1, this.gameEnd);
}
return;
}
......@@ -533,6 +534,12 @@ cc.Class({
this.updateItem();
},
gameEnd(){
if (window && window.courseware) {
window.courseware.gameEnd();
}
},
flyIn(cb){
this.flyVirus[0].active = true;
this.flyVirus[1].active = true;
......
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