Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-libs
Commits
8ffb0c01
Commit
8ffb0c01
authored
Dec 25, 2019
by
XieChuanJin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
engine.env
parent
58358741
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Net.ts
src/custom/shoot-planet/Global/Net.ts
+5
-1
ShootPlanet.ts
src/custom/shoot-planet/ShootPlanet.ts
+0
-2
No files found.
src/custom/shoot-planet/Global/Net.ts
View file @
8ffb0c01
...
@@ -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
src/custom/shoot-planet/ShootPlanet.ts
View file @
8ffb0c01
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment