取消掉副英雄
This commit is contained in:
@@ -51,11 +51,11 @@ export class MissionComp extends CCComp {
|
||||
private on_mon_wave_update(){
|
||||
smc.vmdata.mission_data.current_wave++
|
||||
let wave=smc.vmdata.mission_data.current_wave
|
||||
if(wave==FightSet.FRIEND_WAVE_UP){
|
||||
console.log("[任务系统] FRIEND_WAVE_UP 伙伴选择 :",wave,FightSet.FRIEND_WAVE_UP)
|
||||
let node= this.node.getChildByName("new_hero")
|
||||
tween(node).to(0.3, {position:v3(280,node.position.y,1)}).start()
|
||||
}
|
||||
// if(wave==FightSet.FRIEND_WAVE_UP){
|
||||
// console.log("[任务系统] FRIEND_WAVE_UP 伙伴选择 :",wave,FightSet.FRIEND_WAVE_UP)
|
||||
// let node= this.node.getChildByName("new_hero")
|
||||
// tween(node).to(0.3, {position:v3(280,node.position.y,1)}).start()
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@@ -163,9 +163,10 @@ export class MissionComp extends CCComp {
|
||||
private cleanComponents() {
|
||||
ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()});
|
||||
}
|
||||
|
||||
hide_call_friend(){
|
||||
let node =this.node.getChildByName("new_hero")
|
||||
tween(node).to(0.3, {position:v3(480,node.position.y,1)}).start()
|
||||
// let node =this.node.getChildByName("new_hero")
|
||||
// tween(node).to(0.3, {position:v3(480,node.position.y,1)}).start()
|
||||
}
|
||||
/** 视图层逻辑代码分离演示 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user