Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn19_read
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
sn19_read
Commits
aa8f9efe
Commit
aa8f9efe
authored
Nov 10, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能完成
parent
da91fda0
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
258 additions
and
3139 deletions
+258
-3139
ImgAuto_sn17_danci.ts
assets/sn17_danci/scene/ImgAuto_sn17_danci.ts
+7
-12
sn17_danci.fire
assets/sn17_danci/scene/sn17_danci.fire
+189
-3002
sn17_danci.ts
assets/sn17_danci/scene/sn17_danci.ts
+62
-125
No files found.
assets/sn17_danci/scene/ImgAuto_sn17_danci.ts
View file @
aa8f9efe
...
...
@@ -7,17 +7,12 @@ const { ccclass, property } = cc._decorator;
@
ccclass
export
default
class
ImgAuto
extends
cc
.
Component
{
private
img_npc_voice
:
cc
.
Node
;
onLoad
()
{
this
.
initView
();
this
.
initEvent
();
}
protected
onDestroy
():
void
{
this
.
unscheduleAllCallbacks
();
}
initView
()
{
this
.
img_npc_voice
=
this
.
node
;
}
initEvent
()
{
pg
.
event
.
on
(
'
img_voice_play_voice_start
'
,
()
=>
{
this
.
playVoiceStart
();
...
...
@@ -34,10 +29,10 @@ export default class ImgAuto extends cc.Component {
}
playVoiceRunning
()
{
this
.
playVoiceCount
++
;
if
(
!
this
.
img_npc_voic
e
)
return
;
let
p1
=
this
.
img_npc_voic
e
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
img_npc_voic
e
.
getChildByName
(
'
p2
'
)
let
p3
=
this
.
img_npc_voic
e
.
getChildByName
(
'
p3
'
)
if
(
!
this
.
nod
e
)
return
;
let
p1
=
this
.
nod
e
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
nod
e
.
getChildByName
(
'
p2
'
)
let
p3
=
this
.
nod
e
.
getChildByName
(
'
p3
'
)
p1
.
active
=
this
.
playVoiceCount
%
3
==
0
;
p2
.
active
=
this
.
playVoiceCount
%
3
==
1
;
p3
.
active
=
this
.
playVoiceCount
%
3
==
2
;
...
...
@@ -45,9 +40,9 @@ export default class ImgAuto extends cc.Component {
playVoiceEnd
()
{
this
.
unschedule
(
this
.
playVoiceRunning
)
this
.
playVoiceCount
=
0
;
let
p1
=
this
.
img_npc_voic
e
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
img_npc_voic
e
.
getChildByName
(
'
p2
'
)
let
p3
=
this
.
img_npc_voic
e
.
getChildByName
(
'
p3
'
)
let
p1
=
this
.
nod
e
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
nod
e
.
getChildByName
(
'
p2
'
)
let
p3
=
this
.
nod
e
.
getChildByName
(
'
p3
'
)
p1
.
active
=
true
;
p2
.
active
=
false
;
p3
.
active
=
false
;
...
...
assets/sn17_danci/scene/sn17_danci.fire
View file @
aa8f9efe
This diff is collapsed.
Click to expand it.
assets/sn17_danci/scene/sn17_danci.ts
View file @
aa8f9efe
This diff is collapsed.
Click to expand it.
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