Commit 85d3ee62 authored by 范雪寒's avatar 范雪寒

feat:

parent bf032c37
......@@ -5,6 +5,7 @@
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import { asyncDelay } from "../../script/util";
import PS_001_dialogueManager from "./PS_001_dialogueManager";
import PS_001_handManager from "./PS_001_handManager";
import PS_001_scene1 from "./PS_001_scene1";
......@@ -60,7 +61,7 @@ export default class PS_001_Ctrl extends cc.Component {
resume() {
PS_001_handManager.getIns().resume()
}
goscene(id) {
async goscene(id) {
cc.director.getActionManager().removeAllActions()
if (this.ShowNode) {
this.ShowNode.destroy()
......@@ -69,46 +70,57 @@ export default class PS_001_Ctrl extends cc.Component {
if(id == 21221){
this.ShowNode = cc.instantiate(this.allScene[0])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene1).gofive(this.carema, this)
}else if(id == 21223){
this.ShowNode = cc.instantiate(this.allScene[0])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene1).go12(this.carema, this)
}else if(id == 21216){
this.ShowNode = cc.instantiate(this.allScene[1])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene2).go9(this.carema, this)
}else if(id == 21217){
this.ShowNode = cc.instantiate(this.allScene[2])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene3).go13(this.carema, this)
}else if(id == 21224){
this.ShowNode = cc.instantiate(this.allScene[3])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene4).go18(this.carema, this)
}else if(id == 21222){
this.ShowNode = cc.instantiate(this.allScene[4])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene5).go18(this.carema, this)
}else if(id == 21218){
this.ShowNode = cc.instantiate(this.allScene[5])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene6).go10(this.carema, this)
}else if(id == 21225){
this.ShowNode = cc.instantiate(this.allScene[5])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene6).go16(this.carema, this)
}else if(id == 21220){
this.ShowNode = cc.instantiate(this.allScene[6])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene7).go18(this.carema, this)
}else if(id == 21219){
this.ShowNode = cc.instantiate(this.allScene[7])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene8).go24(this.carema, this)
}else if(id == 21226){
this.ShowNode = cc.instantiate(this.allScene[7])
this.node.addChild(this.ShowNode)
await asyncDelay(0.001);
this.ShowNode.getComponent(PS_001_scene8).go33(this.carema, this)
}
}
......
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