Commit 6481b317 authored by huoshizhe's avatar huoshizhe

feat:

parent e9f4cef6
...@@ -33,8 +33,6 @@ export default class PS_001_scene1 extends cc.Component { ...@@ -33,8 +33,6 @@ export default class PS_001_scene1 extends cc.Component {
this.initUI(); this.initUI();
if (PS_001_Ctrl.getIns().time == 0) { if (PS_001_Ctrl.getIns().time == 0) {
this.beforeStartFirstTime(); this.beforeStartFirstTime();
} else { } else {
......
...@@ -44,13 +44,14 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -44,13 +44,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
]; ];
const step = this.data.step; const step = this.data.step;
if (step != 0) { cc.director.loadScene(`PS_001_scene1`, () => {
PS_001_Ctrl.getIns().time = 1; if (step != 0) {
PS_001_Ctrl.getIns().goscene(conf[step].id); PS_001_Ctrl.getIns().time = 1;
return; PS_001_Ctrl.getIns().goscene(conf[step].id);
} else { } else {
PS_001_Ctrl.getIns().toNext(0); PS_001_Ctrl.getIns().toNext(0);
} }
});
} }
playLocalAudio(audioName) { 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