Commit 8ffb0c01 authored by XieChuanJin's avatar XieChuanJin

engine.env

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