技能开始

This commit is contained in:
2025-01-03 16:43:03 +08:00
parent df8738bd84
commit 0524eee5e0
21 changed files with 1347 additions and 233 deletions

View File

@@ -30,7 +30,6 @@ export class Skill extends ecs.Entity {
var node = instantiate(prefab);
pos=v3(pos.x,pos.y)
node.parent = parent;
//转换pos为世界坐标
node.setPosition(pos)
var sv = node.getComponent(SkillCom)!;
let angle=0
@@ -47,16 +46,8 @@ export class Skill extends ecs.Entity {
sv.is_crit=is_crit
sv.crit_add=crit_add
// node.setScale(v3(node.scale.x*scale,node.scale.y))
sv.speed=SkillSet[uuid].speed;
sv.dis=SkillSet[uuid].dis;
sv.run_type=SkillSet[uuid].run;
if(sv.dis == 0){
sv.run_type=2
}
sv.in_time=SkillSet[uuid].in;
sv.t_pos = t_pos; // 目标增量
sv.type = SkillSet[uuid].type;
sv.box_tag= BoxSet.SKILL_TAG;