伤害技能添加,技能还需完善
This commit is contained in:
@@ -36,7 +36,7 @@ export class Skill extends ecs.Entity {
|
||||
// console.log("load skill parent.position :",parent.position)
|
||||
pos=v3(parent.position.x+pos.x,parent.position.y+pos.y)
|
||||
node.parent = parent.parent;
|
||||
// node.setScale(scale,1)
|
||||
node.setScale(scale,1)
|
||||
//转换pos为世界坐标
|
||||
node.setPosition(pos)
|
||||
var sv = node.getComponent(SkillCom)!;
|
||||
|
||||
Reference in New Issue
Block a user