This commit is contained in:
2024-09-29 09:49:35 +08:00
parent 331b22da07
commit 81639781f9
7 changed files with 100 additions and 82 deletions

View File

@@ -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,this.node.position.y+10), },
{position:v3(this.node.position.x+30,this.node.position.y+20), },
{
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,this.node.position.y+10), },
{position:v3(this.node.position.x-30,this.node.position.y+20), },
{
onComplete:()=>{ this.ent.destroy()},
easing:"linear"