Commit 6481b317 authored by huoshizhe's avatar huoshizhe

feat:

parent e9f4cef6
......@@ -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 {
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment