Commit b08f4b52 authored by 范雪寒's avatar 范雪寒

test:

parent 1cb9dd6e
...@@ -251,7 +251,7 @@ export default class PS_001_scene1 extends cc.Component { ...@@ -251,7 +251,7 @@ export default class PS_001_scene1 extends cc.Component {
this.rightrabbit.getComponent(dragonBones.ArmatureDisplay).playAnimation('question', 0) this.rightrabbit.getComponent(dragonBones.ArmatureDisplay).playAnimation('question', 0)
this.tweenary.push(cc.tween(this.camera).delay(2).call(() => { this.tweenary.push(cc.tween(this.camera).delay(2).call(() => {
console.log('进入') console.log('进入')
this.parent.toNext(7) this.parent.toNext(1)
this.node.destroy() this.node.destroy()
}).start()) }).start())
...@@ -275,8 +275,8 @@ export default class PS_001_scene1 extends cc.Component { ...@@ -275,8 +275,8 @@ export default class PS_001_scene1 extends cc.Component {
this.parent = parent this.parent = parent
this.initUI(); this.initUI();
this.camera.setPosition(-30.6, 140.7) this.camera.setPosition(-30.6, 140.7)
this.camera.getComponent(cc.Camera).zoomRatio = 1.25 this.camera.getComponent(cc.Camera).zoomRatio = 1.5
this.tweenary.push(cc.tween(this.camera.getComponent(cc.Camera)).to(1, { zoomRatio: 1 }).call(this.func2, this).start()) this.tweenary.push(cc.tween(this.camera.getComponent(cc.Camera)).to(1, { zoomRatio: 1.25 }).call(this.func2, this).start())
this.tweenary.push(cc.tween(this.camera).to(1, { x: 0, y: 0 }).start()) this.tweenary.push(cc.tween(this.camera).to(1, { x: 0, y: 0 }).start())
PS_001_dialogueManager.getIns().start(1, 5) PS_001_dialogueManager.getIns().start(1, 5)
PS_001_handManager.getIns().start(1, this, 5) PS_001_handManager.getIns().start(1, this, 5)
......
...@@ -56,6 +56,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -56,6 +56,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
PS_001_Ctrl.getIns().time = 1; PS_001_Ctrl.getIns().time = 1;
PS_001_Ctrl.getIns().goscene(conf[step].id); PS_001_Ctrl.getIns().goscene(conf[step].id);
} else { } else {
PS_001_Ctrl.getIns().time = 1;
PS_001_Ctrl.getIns().toNext(0); PS_001_Ctrl.getIns().toNext(0);
} }
}); });
......
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