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