技能开始
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user