旋风斩 螺旋丸 完成

This commit is contained in:
2025-01-09 15:51:00 +08:00
parent b1e50d0721
commit 2903e06ed4
17 changed files with 1199 additions and 117 deletions

View File

@@ -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);