技能 继续

This commit is contained in:
pan@work
2024-09-25 11:01:43 +08:00
parent 033bccfc1a
commit 3870bdec50
9 changed files with 4559 additions and 1029 deletions

View File

@@ -41,7 +41,7 @@ export class Tooltip extends ecs.Entity {
sv.stype = type;
sv.value = vaule;
sv.s_uuid = s_uuid;
sv.alive_time = cd;
sv.alive_time = 0.3;
this.add(sv)
}
}

View File

@@ -20,7 +20,7 @@ export class TooltipCom extends CCComp {
stype:number = 1; // 1:减少生命值2增加生命值3技能图标
value:string = "";
s_uuid:number = 1001;
alive_time:number = 1;
alive_time:number = 0.2;
skill_name_time=0.5;
start() {
this.node.getChildByName("loss_life").active=false;
@@ -33,7 +33,7 @@ export class TooltipCom extends CCComp {
this.node.getChildByName("loss_life").active=true;
tween(this.node).to(
this.alive_time,
{position:v3(this.node.position.x+10,this.node.position.y+40), },
{position:v3(this.node.position.x,this.node.position.y+10), },
{
onComplete:()=>{ this.ent.destroy()},
easing:"linear"
@@ -45,7 +45,7 @@ export class TooltipCom extends CCComp {
this.node.getChildByName("add_life").active=true;
tween(this.node).to(
this.alive_time,
{position:v3(this.node.position.x+10,this.node.position.y+40), },
{position:v3(this.node.position.x,this.node.position.y+10), },
{
onComplete:()=>{ this.ent.destroy()},
easing:"linear"