dd
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user