Commit 3f35a094 authored by XieChuanJin's avatar XieChuanJin

派发分数事件

parent 817209c0
...@@ -297,6 +297,17 @@ export default class Game { ...@@ -297,6 +297,17 @@ export default class Game {
this.onGameOver && this.onGameOver(); this.onGameOver && this.onGameOver();
} }
} }
this.outputEvent();
}
private outputEvent() {
engine.globalEvent.dispatchEvent("ShootPlaneGame", {
score: this.score,
bulletScore: this.bulletScore,
powerScore: this.powerScore,
countDown: this.timer
});
} }
private updateMaxBallNum(bulletScore: number) { private updateMaxBallNum(bulletScore: number) {
......
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