dd
This commit is contained in:
@@ -47,11 +47,11 @@ export class MissionComp extends CCComp {
|
||||
// this.MMSComp.s_uuid=smc.mission.mmskill
|
||||
}
|
||||
start() {
|
||||
this.heros_node=this.node.getChildByName("heros")
|
||||
// this.heros_node=this.node.getChildByName("heros")
|
||||
// this.herosc_node=this.node.getChildByName("herosc")
|
||||
// this.herosc_node.active=false
|
||||
// this.node.getChildByName('hbg').active=false
|
||||
this.heros_node_pos=v3(this.heros_node.position.x,this.heros_node.position.y,this.heros_node.position.z)
|
||||
// this.heros_node_pos=v3(this.heros_node.position.x,this.heros_node.position.y,this.heros_node.position.z)
|
||||
// this.VictoryComp=this.node.getChildByName("victory").getComponent(VictoryComp)
|
||||
}
|
||||
|
||||
@@ -68,22 +68,22 @@ export class MissionComp extends CCComp {
|
||||
// this.node.getChildByName('hbg').active=true
|
||||
const screenSize = this.node.getComponent(UITransform).contentSize;
|
||||
const centerY = screenSize.height / 2;
|
||||
tween(this.heros_node).to(0.1,{position:v3(this.heros_node.position.x,centerY,0)}, // 这里以node的位置信息坐标缓动的目标
|
||||
{ // ITweenOption 的接口实现:
|
||||
onComplete:()=>{
|
||||
// tween(this.heros_node).to(0.1,{position:v3(this.heros_node.position.x,centerY,0)}, // 这里以node的位置信息坐标缓动的目标
|
||||
// { // ITweenOption 的接口实现:
|
||||
// onComplete:()=>{
|
||||
|
||||
this.herosc_node.active=true
|
||||
this.heros_node.active=false
|
||||
this.hero_args=args
|
||||
}
|
||||
}).start()
|
||||
// this.herosc_node.active=true
|
||||
// this.heros_node.active=false
|
||||
// this.hero_args=args
|
||||
// }
|
||||
// }).start()
|
||||
}
|
||||
call_hero(event: string, args: any){
|
||||
console.log("call_hero",args)
|
||||
oops.message.dispatchEvent(GameEvent.CallHero,{uuid:this.hero_args.uuid,pos:args})
|
||||
// this.herosc_node.active=false
|
||||
this.heros_node.active=true
|
||||
this.heros_node.position=this.heros_node_pos
|
||||
// this.heros_node.active=true
|
||||
// this.heros_node.position=this.heros_node_pos
|
||||
this.hero_args=null
|
||||
// this.node.getChildByName('hbg').active=false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user