Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dap-hu
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
Vũ Gia Vương
dap-hu
Commits
c6c9e97a
Commit
c6c9e97a
authored
Apr 28, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix delay fragment drop
parent
9041bc81
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
BreakingJarController.ts
assets/scripts/GamePlay/BreakingJarController.ts
+2
-2
FragmentJarController.ts
assets/scripts/GamePlay/FragmentJarController.ts
+1
-1
No files found.
assets/scripts/GamePlay/BreakingJarController.ts
View file @
c6c9e97a
...
...
@@ -80,8 +80,8 @@ export default class BreakingJarController extends cc.Component {
cc
.
tween
(
this
.
hammerNode
)
.
to
(
0.5
,
{
position
:
cc
.
v3
(
newPos
.
x
,
newPos
.
y
,
0
)
})
.
delay
(
0.
3
)
.
to
(
0.
3
,
{
position
:
cc
.
v3
(
400
,
-
400
)
})
.
delay
(
0.
1
)
.
to
(
0.
2
,
{
position
:
cc
.
v3
(
400
,
-
400
)
})
.
call
(()
=>
this
.
hammerNode
.
active
=
false
)
.
start
();
}
...
...
assets/scripts/GamePlay/FragmentJarController.ts
View file @
c6c9e97a
...
...
@@ -79,13 +79,13 @@ export default class FragmentJarController extends cc.Component {
private
dropFragment
()
{
this
.
_isDropped
=
true
;
const
pos
=
this
.
node
.
position
;
this
.
node
.
setSiblingIndex
(
-
1
);
eventTarget
.
emit
(
CHECK_FRAGMENT
,
this
.
node
);
cc
.
tween
(
this
.
node
)
.
delay
(
0.5
)
.
call
(()
=>
{
eventTarget
.
emit
(
PLAY_DROP_SOUND
);
this
.
node
.
setSiblingIndex
(
-
1
);
})
.
to
(
0.1
,
{
scale
:
0.9
})
.
to
(
0.1
,
{
scale
:
1.05
})
...
...
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