Commit 8ffb0c01 authored by XieChuanJin's avatar XieChuanJin

engine.env

parent 58358741
......@@ -121,7 +121,7 @@ export default class Net {
}
private static urlReplaceConfig = {
"{projectId}": engine.env.projectID
"{projectId}": getProjectId
}
public static readonly Url = {
......@@ -149,3 +149,7 @@ interface INetData {
pollingCheck?: (res: any) => boolean,
pollingCount?: number
}
function getProjectId() {
return engine.env.projectID;
}
\ No newline at end of file
......@@ -58,7 +58,6 @@ export class ShootPlanet extends engine.Container {
constructor() {
super();
this.customProperty();
this.width = 750;
this.height = 1624;
......@@ -66,7 +65,6 @@ 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