Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbox_FT_08
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
Sbox_FT_08
Commits
39b37b8c
Commit
39b37b8c
authored
Dec 21, 2021
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 定时器问题
parent
07c967ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
GameLogic.js
assets/Sbox_FT_08/script/GameLogic.js
+3
-3
No files found.
assets/Sbox_FT_08/script/GameLogic.js
View file @
39b37b8c
...
...
@@ -346,7 +346,7 @@ export default class GameLogic {
})
this
.
g_cartoon
.
tweenChange
(
bell2
.
node
,
{
scaleX
:
1
,
scaleY
:
1
},
0.2
,
()
=>
{
this
.
g_cartoon
.
getCartoonElement
(
"
bird_1
"
).
flyBack
(()
=>
{
this
.
_timeoutIds
(
setTimeout
(()
=>
{
this
.
_timeoutIds
.
push
(
setTimeout
(()
=>
{
if
(
callback
)
{
callback
();
}
...
...
@@ -699,7 +699,7 @@ export default class GameLogic {
birdAniWrong_1
.
node
.
opacity
=
255
;
birdStatic_1
.
node
.
opacity
=
0
;
birdAudio
.
switchAni
(
1
)
this
.
_timeoutIds
(
setTimeout
(()
=>
{
this
.
_timeoutIds
.
push
(
setTimeout
(()
=>
{
birdAniWrong_1
.
node
.
opacity
=
0
;
birdStatic_1
.
node
.
opacity
=
255
;
birdAudio
.
switchAni
(
0
)
...
...
@@ -710,7 +710,7 @@ export default class GameLogic {
birdAniWrong_2
.
node
.
opacity
=
255
;
birdStatic_2
.
node
.
opacity
=
0
;
this
.
_timeoutIds
(
setTimeout
(()
=>
{
this
.
_timeoutIds
.
push
(
setTimeout
(()
=>
{
birdAniWrong_2
.
node
.
opacity
=
0
;
birdStatic_2
.
node
.
opacity
=
255
;
},
1000
));
...
...
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