Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg10_ty
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
dg10_ty
Commits
b15bf4e4
Commit
b15bf4e4
authored
Nov 02, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改动画细节
parent
97bfc7a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
dg10_ty_xiaodi.ts
assets/dg10_ty/scene/dg10_ty_xiaodi.ts
+23
-7
No files found.
assets/dg10_ty/scene/dg10_ty_xiaodi.ts
View file @
b15bf4e4
...
@@ -51,13 +51,29 @@ export default class dg_xiaodi extends cc.Component {
...
@@ -51,13 +51,29 @@ export default class dg_xiaodi extends cc.Component {
private
audioIdOver
:
any
;
private
audioIdOver
:
any
;
playOver
(
audioUrl
)
{
playOver
(
audioUrl
)
{
this
.
node
.
active
=
true
;
this
.
node
.
active
=
true
;
pg
.
view
.
playDBAnimation
(
this
.
aniRole
,
'
talk
'
);
let
startX
=
this
.
defaultX
+
this
.
moveX
;
pg
.
audio
.
playAudioByUrl
(
audioUrl
,
()
=>
{
this
.
aniRole
.
x
=
startX
;
this
.
audioIdOver
=
null
;
cc
.
tween
(
this
.
aniRole
)
pg
.
view
.
playDBAnimation
(
this
.
aniRole
,
'
normal
'
);
.
call
(()
=>
{
},
audioId
=>
{
pg
.
view
.
playDBAnimation
(
this
.
aniRole
,
'
run
'
);
this
.
audioIdOver
=
audioId
;
if
(
this
.
moveX
<
0
)
{
})
this
.
aniRole
.
scaleX
=
-
this
.
aniRole
.
scaleX
;
}
})
.
to
(
0.3
,
{
x
:
this
.
defaultX
})
.
call
(()
=>
{
if
(
this
.
moveX
<
0
)
{
this
.
aniRole
.
scaleX
=
-
this
.
aniRole
.
scaleX
;
}
pg
.
view
.
playDBAnimation
(
this
.
aniRole
,
'
talk
'
);
pg
.
audio
.
playAudioByUrl
(
audioUrl
,
()
=>
{
this
.
audioIdOver
=
null
;
pg
.
view
.
playDBAnimation
(
this
.
aniRole
,
'
normal
'
);
},
audioId
=>
{
this
.
audioIdOver
=
audioId
;
})
})
.
start
();
}
}
playOverEnd
()
{
playOverEnd
()
{
this
.
node
.
active
=
false
;
this
.
node
.
active
=
false
;
...
...
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