Commit 52b187f5 authored by 范雪寒's avatar 范雪寒

feat:

parent 5a85c0ed
...@@ -34,7 +34,7 @@ export default class PS_001_Ctrl extends cc.Component { ...@@ -34,7 +34,7 @@ export default class PS_001_Ctrl extends cc.Component {
static getIns() { static getIns() {
return this.ins return this.ins
} }
time: number = 1 time: number = 0
protected onLoad(): void { protected onLoad(): void {
PS_001_dialogueManager.getIns().init(this.dialog) PS_001_dialogueManager.getIns().init(this.dialog)
PS_001_handManager.getIns().init(this.head) PS_001_handManager.getIns().init(this.head)
......
...@@ -43,12 +43,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -43,12 +43,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
{ id: 21226, scene: 8 }, { id: 21226, scene: 8 },
]; ];
const step = this.data.step;
cc.director.loadScene(`PS_001_scene1`, () => { cc.director.loadScene(`PS_001_scene1`, () => {
if (this.data.step == 0) { if (step == 0) {
return; return;
} }
// conf[this.data.step].scene // conf[step].scene
PS_001_Ctrl.getIns().goscene(conf[this.data.step].id); PS_001_Ctrl.getIns().goscene(conf[step].id);
}); });
// if (!cc.game.isPersistRootNode(cc.find('bk'))) { // if (!cc.game.isPersistRootNode(cc.find('bk'))) {
......
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