Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TXZS_G_001
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
TXZS_G_001
Commits
252ef706
Commit
252ef706
authored
Mar 03, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清除一些异步操作导致的爆闪问题
parent
6c49b45a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
TXZS_G_001.js
assets/TXZS_G_001/scene/TXZS_G_001.js
+2
-2
GameLogic_TXZS_G_001.js
assets/TXZS_G_001/script/GameLogic_TXZS_G_001.js
+7
-2
No files found.
assets/TXZS_G_001/scene/TXZS_G_001.js
View file @
252ef706
...
...
@@ -115,8 +115,8 @@ cc.Class({
})
},
destroyed
()
{
this
.
gameLogic
.
destroyed
&&
this
.
gameLogic
.
destroyed
();
onDestroy
()
{
this
.
gameLogic
.
onDestroy
&&
this
.
gameLogic
.
onDestroy
();
},
getData
(
cb
)
{
...
...
assets/TXZS_G_001/script/GameLogic_TXZS_G_001.js
View file @
252ef706
...
...
@@ -746,8 +746,13 @@ export default class GameLogic {
});
}
destroyed
()
{
console
.
log
(
"
DES
"
)
onDestroy
()
{
this
.
g_timeoutIds
.
forEach
(
id
=>
{
clearTimeout
(
id
)
})
if
(
this
.
m_sysIntervalId
)
{
clearInterval
(
this
.
m_sysIntervalId
)
}
}
...
...
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