Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zjzy_client_game
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
王勇霞
zjzy_client_game
Commits
182fe4dc
Commit
182fe4dc
authored
Mar 15, 2023
by
王勇霞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除事件
parent
dcb878ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ResJson.ts
src/ResJson.ts
+1
-1
GameScene.ts
src/scenes/GameScene.ts
+6
-1
No files found.
src/ResJson.ts
View file @
182fe4dc
...
...
@@ -733,5 +733,5 @@ export const ResJson = {
"name"
:
"svga"
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/1678
772466
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/1678
886131
/resource/"
}
\ No newline at end of file
src/scenes/GameScene.ts
View file @
182fe4dc
...
...
@@ -114,6 +114,7 @@ export class GameScene extends Scene {
}
upDateInfo
()
{
this
.
time
=
Tools
.
configInfo
.
time
;
this
.
cdUIRender
(
this
.
time
)
this
.
startGame
()
this
.
countDown
(
this
.
time
)
...
...
@@ -142,6 +143,9 @@ export class GameScene extends Scene {
timer
=
null
;
countDown
(
time
)
{
if
(
this
.
timer
)
{
clearTimeout
(
this
.
timer
);
}
this
.
timer
=
setTimeout
(()
=>
{
if
(
this
.
time
<=
0
)
{
clearTimeout
(
this
.
timer
);
...
...
@@ -329,7 +333,8 @@ export class GameScene extends Scene {
}
removeEvents
()
{
super
.
removeEvents
();
GDispatcher
.
addEventListener
(
"closeGame"
,
this
.
closeGame
,
this
);
clearTimeout
(
this
.
timer
);
GDispatcher
.
removeEventListener
(
"closeGame"
,
this
.
closeGame
,
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