旋风斩 螺旋丸 完成
This commit is contained in:
@@ -28,8 +28,9 @@ export class Skill extends ecs.Entity {
|
||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||
console.log("load skill pos:",pos)
|
||||
var node = instantiate(prefab);
|
||||
pos=v3(pos.x,pos.y)
|
||||
node.parent = parent.parent;
|
||||
if(SkillSet[uuid].with){node.parent = parent;t_pos=v3(0,0)}
|
||||
if(!SkillSet[uuid].with){node.parent = parent.parent;}
|
||||
|
||||
node.setPosition(pos)
|
||||
if(group==BoxSet.MONSTER) node.setScale(v3(-1*node.scale.x,node.scale.y));
|
||||
var sv = node.getComponent(SkillCom);
|
||||
|
||||
Reference in New Issue
Block a user