Commit 877333e1 authored by XieChuanJin's avatar XieChuanJin

修复重玩游戏变量不重置

parent 88363f1f
......@@ -45,6 +45,11 @@ export class ShootPlanet extends engine.Container {
}
public onActive() {
this.constantSubmitSeq = 1;
this.needSubmitCount = 0;
this.isSubmiting = false;
this._localScore=0;
this.game = new Game(this);
//监听游戏分数变化
this.game.onScoreChange = (delta: 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