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

feat:

parent 5a85c0ed
......@@ -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)
......
......@@ -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'))) {
......
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