装备技能转变 触发+伙伴死亡 被攻击触发
This commit is contained in:
@@ -69,7 +69,18 @@ export class SkillCom extends CCComp {
|
||||
bm.moveTo(this.targetPos)
|
||||
|
||||
}
|
||||
|
||||
if(SkillSet[this.s_uuid].AnimType==AnimType.linear){
|
||||
let tx =400
|
||||
if(this.group==BoxSet.MONSTER){
|
||||
tx=-400
|
||||
this.node.scale=v3(this.node.scale.x*-1,1,1)
|
||||
}
|
||||
tween(this.node).to(1, { position:v3(tx,this.node.position.y,0)},{
|
||||
onComplete: (target?: object) => {
|
||||
this.node.setPosition(tx,this.node.position.y-300,0)
|
||||
}
|
||||
}).start()
|
||||
}
|
||||
// let dir_x = this.targetPos.x > this.node.position.x ? 1 : -1
|
||||
// this.node.scale = v3(dir_x,1,1)
|
||||
// 根据目标位置设置节点朝向
|
||||
|
||||
Reference in New Issue
Block a user