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
52b187f5
Commit
52b187f5
authored
Jan 13, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
5a85c0ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
PS_001_Ctrl.ts
assets/PS_001/ani/script/PS_001_Ctrl.ts
+1
-1
PS_001.ts
assets/PS_001/scene/PS_001.ts
+4
-3
No files found.
assets/PS_001/ani/script/PS_001_Ctrl.ts
View file @
52b187f5
...
...
@@ -34,7 +34,7 @@ export default class PS_001_Ctrl extends cc.Component {
static
getIns
()
{
return
this
.
ins
}
time
:
number
=
1
time
:
number
=
0
protected
onLoad
():
void
{
PS_001_dialogueManager
.
getIns
().
init
(
this
.
dialog
)
PS_001_handManager
.
getIns
().
init
(
this
.
head
)
...
...
assets/PS_001/scene/PS_001.ts
View file @
52b187f5
...
...
@@ -43,12 +43,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
{
id
:
21226
,
scene
:
8
},
];
const
step
=
this
.
data
.
step
;
cc
.
director
.
loadScene
(
`PS_001_scene1`
,
()
=>
{
if
(
this
.
data
.
step
==
0
)
{
if
(
step
==
0
)
{
return
;
}
// conf[
this.data.
step].scene
PS_001_Ctrl
.
getIns
().
goscene
(
conf
[
this
.
data
.
step
].
id
);
// conf[step].scene
PS_001_Ctrl
.
getIns
().
goscene
(
conf
[
step
].
id
);
});
// if (!cc.game.isPersistRootNode(cc.find('bk'))) {
...
...
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