Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PS_001
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
PS_001
Commits
85d3ee62
Commit
85d3ee62
authored
Jan 14, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
bf032c37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
PS_001_Ctrl.ts
assets/PS_001/ani/script/PS_001_Ctrl.ts
+13
-1
No files found.
assets/PS_001/ani/script/PS_001_Ctrl.ts
View file @
85d3ee62
...
...
@@ -5,6 +5,7 @@
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import
{
asyncDelay
}
from
"
../../script/util
"
;
import
PS_001_dialogueManager
from
"
./PS_001_dialogueManager
"
;
import
PS_001_handManager
from
"
./PS_001_handManager
"
;
import
PS_001_scene1
from
"
./PS_001_scene1
"
;
...
...
@@ -60,7 +61,7 @@ export default class PS_001_Ctrl extends cc.Component {
resume
()
{
PS_001_handManager
.
getIns
().
resume
()
}
goscene
(
id
)
{
async
goscene
(
id
)
{
cc
.
director
.
getActionManager
().
removeAllActions
()
if
(
this
.
ShowNode
)
{
this
.
ShowNode
.
destroy
()
...
...
@@ -69,46 +70,57 @@ export default class PS_001_Ctrl extends cc.Component {
if
(
id
==
21221
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
0
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene1
).
gofive
(
this
.
carema
,
this
)
}
else
if
(
id
==
21223
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
0
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene1
).
go12
(
this
.
carema
,
this
)
}
else
if
(
id
==
21216
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
1
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene2
).
go9
(
this
.
carema
,
this
)
}
else
if
(
id
==
21217
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
2
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene3
).
go13
(
this
.
carema
,
this
)
}
else
if
(
id
==
21224
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
3
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene4
).
go18
(
this
.
carema
,
this
)
}
else
if
(
id
==
21222
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
4
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene5
).
go18
(
this
.
carema
,
this
)
}
else
if
(
id
==
21218
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
5
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene6
).
go10
(
this
.
carema
,
this
)
}
else
if
(
id
==
21225
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
5
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene6
).
go16
(
this
.
carema
,
this
)
}
else
if
(
id
==
21220
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
6
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene7
).
go18
(
this
.
carema
,
this
)
}
else
if
(
id
==
21219
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
7
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene8
).
go24
(
this
.
carema
,
this
)
}
else
if
(
id
==
21226
){
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
7
])
this
.
node
.
addChild
(
this
.
ShowNode
)
await
asyncDelay
(
0.001
);
this
.
ShowNode
.
getComponent
(
PS_001_scene8
).
go33
(
this
.
carema
,
this
)
}
}
...
...
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