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
6481b317
Commit
6481b317
authored
Jan 14, 2022
by
huoshizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
e9f4cef6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
PS_001_scene1.ts
assets/PS_001/ani/script/PS_001_scene1.ts
+0
-2
PS_001.ts
assets/PS_001/scene/PS_001.ts
+8
-7
No files found.
assets/PS_001/ani/script/PS_001_scene1.ts
View file @
6481b317
...
...
@@ -33,8 +33,6 @@ export default class PS_001_scene1 extends cc.Component {
this
.
initUI
();
if
(
PS_001_Ctrl
.
getIns
().
time
==
0
)
{
this
.
beforeStartFirstTime
();
}
else
{
...
...
assets/PS_001/scene/PS_001.ts
View file @
6481b317
...
...
@@ -44,13 +44,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
];
const
step
=
this
.
data
.
step
;
if
(
step
!=
0
)
{
PS_001_Ctrl
.
getIns
().
time
=
1
;
PS_001_Ctrl
.
getIns
().
goscene
(
conf
[
step
].
id
);
return
;
}
else
{
PS_001_Ctrl
.
getIns
().
toNext
(
0
);
}
cc
.
director
.
loadScene
(
`PS_001_scene1`
,
()
=>
{
if
(
step
!=
0
)
{
PS_001_Ctrl
.
getIns
().
time
=
1
;
PS_001_Ctrl
.
getIns
().
goscene
(
conf
[
step
].
id
);
}
else
{
PS_001_Ctrl
.
getIns
().
toNext
(
0
);
}
});
}
playLocalAudio
(
audioName
)
{
...
...
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