Commit 58358741 authored by XieChuanJin's avatar XieChuanJin

projectId

parent 3f35a094
......@@ -200,6 +200,7 @@ export default class Game {
private over() {
this.pause = true;
engine.globalEvent.dispatchEvent("ShootPlanetGameOver");
this.onGameOver && this.onGameOver();
}
......@@ -294,6 +295,7 @@ export default class Game {
this.timing = false;
//时间到
this.pause = true;
engine.globalEvent.dispatchEvent("ShootPlanetGameOver");
this.onGameOver && this.onGameOver();
}
}
......@@ -302,7 +304,7 @@ export default class Game {
}
private outputEvent() {
engine.globalEvent.dispatchEvent("ShootPlaneGame", {
engine.globalEvent.dispatchEvent("ShootPlaneUpdate", {
score: this.score,
bulletScore: this.bulletScore,
powerScore: this.powerScore,
......
......@@ -121,7 +121,7 @@ export default class Net {
}
private static urlReplaceConfig = {
"{projectId}": projectId
"{projectId}": engine.env.projectID
}
public static readonly Url = {
......
......@@ -67,6 +67,7 @@ export class ShootPlanet extends engine.Container {
private init() {
engine.env.soundEnabled = true;
Net.urlReplace();
MTimer.init();
DebugMgr.instance.init(this);
}
......
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