Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn02_danci
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
sn02_danci
Commits
4cf70cba
Commit
4cf70cba
authored
Sep 11, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改正确动效
parent
cca735c4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
553 additions
and
445 deletions
+553
-445
sn02_danci.fire
assets/sn02_danci/scene/sn02_danci.fire
+544
-439
sn02_danci.ts
assets/sn02_danci/scene/sn02_danci.ts
+9
-6
No files found.
assets/sn02_danci/scene/sn02_danci.fire
View file @
4cf70cba
This diff is collapsed.
Click to expand it.
assets/sn02_danci/scene/sn02_danci.ts
View file @
4cf70cba
...
@@ -566,12 +566,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -566,12 +566,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
}
}
wordToWordBg
(
node
,
target
)
{
wordToWordBg
(
node
,
target
)
{
let
light
=
pg
.
view
.
find
(
node
,
'
light
'
);
// let light = pg.view.find(node, 'light');
let
candys
=
pg
.
view
.
find
(
node
,
'
candys
'
);
// let candys = pg.view.find(node, 'candys');
light
.
active
=
true
;
// light.active = true;
candys
.
getComponent
(
Candy
).
showAni
().
then
(()
=>
{
// candys.getComponent(Candy).showAni().then(() => {
cc
.
tween
(
light
).
to
(
1
,
{
opacity
:
0
}).
start
();
// cc.tween(light).to(1, { opacity: 0 }).start();
})
// })
let
right
=
pg
.
view
.
find
(
node
,
'
right
'
)
pg
.
view
.
visible
(
right
,
true
)
pg
.
view
.
playDBAnimation
(
right
,
'
newAnimation
'
,
1
)
cc
.
tween
(
node
)
cc
.
tween
(
node
)
.
to
(
0.2
,
{
x
:
target
.
x
,
y
:
target
.
y
,
scale
:
1
})
.
to
(
0.2
,
{
x
:
target
.
x
,
y
:
target
.
y
,
scale
:
1
})
.
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