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
4cd1b5ee
Commit
4cd1b5ee
authored
Apr 02, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sound
parent
5ed973cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
FragmentController.ts
assets/scripts/GamePlay/FragmentController.ts
+4
-1
No files found.
assets/scripts/GamePlay/FragmentController.ts
View file @
4cd1b5ee
import
{
eventTarget
,
CHECK_TOUCH
,
CHECK_FRAGMENT
,
HAMMER
,
RESET_FRAGMENT
}
from
"../Events"
;
import
{
eventTarget
,
CHECK_TOUCH
,
CHECK_FRAGMENT
,
HAMMER
,
RESET_FRAGMENT
,
PLAY_DROP_SOUND
}
from
"../Events"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
@@ -45,6 +45,9 @@ export default class FragmentController extends cc.Component {
...
@@ -45,6 +45,9 @@ export default class FragmentController extends cc.Component {
this
.
node
.
setSiblingIndex
(
-
1
);
this
.
node
.
setSiblingIndex
(
-
1
);
cc
.
tween
(
this
.
node
)
cc
.
tween
(
this
.
node
)
.
delay
(
0.5
)
.
delay
(
0.5
)
.
call
(()
=>
{
eventTarget
.
emit
(
PLAY_DROP_SOUND
);
})
.
to
(
0.2
,
{
scale
:
0.95
})
.
to
(
0.2
,
{
scale
:
0.95
})
.
to
(
0.2
,
{
scale
:
1.05
,
position
:
pos
.
clone
().
multiplyScalar
(
1.2
)
})
.
to
(
0.2
,
{
scale
:
1.05
,
position
:
pos
.
clone
().
multiplyScalar
(
1.2
)
})
.
call
(()
=>
{
.
call
(()
=>
{
...
...
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