角色buff 动画控制交由 buffcomp

This commit is contained in:
2024-12-30 16:59:05 +08:00
parent ed12d4d428
commit a66e61c313
20 changed files with 606 additions and 400 deletions

View File

@@ -31,7 +31,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+20), },
{position:v3(this.node.position.x,this.node.position.y+20), },
{
onComplete:()=>{ this.ent.destroy()},
easing:"linear"
@@ -69,7 +69,7 @@ export class TooltipCom extends CCComp {
this.node.getChildByName("bloss").active=true;
tween(this.node).to(
this.alive_time,
{position:v3(this.node.position.x-10,this.node.position.y+20), },
{position:v3(this.node.position.x,this.node.position.y+20), },
{
onComplete:()=>{ this.ent.destroy()},
easing:"linear"