技能都改为 cd 减少 玩家学习成本

This commit is contained in:
2025-07-25 17:20:23 +08:00
parent 509121a2ab
commit 855fed2a47
8 changed files with 73 additions and 55 deletions

View File

@@ -28,7 +28,7 @@ export class TooltipCom extends CCComp {
start() {
switch(this.stype){
case TooltipTypes.life:
this.node.setPosition(v3(this.node.position.x,this.node.position.y-50))
this.node.setPosition(v3(this.node.position.x,this.node.position.y))
this.node.setSiblingIndex(100);
this.node.getChildByName("loss_life").getChildByName("hp").getComponent(Label).string = this.value;
this.node.getChildByName("loss_life").active=true;
@@ -45,7 +45,7 @@ export class TooltipCom extends CCComp {
},0.5)
break
case TooltipTypes.crit:
this.node.setPosition(v3(this.node.position.x,this.node.position.y-50))
this.node.setPosition(v3(this.node.position.x,this.node.position.y))
this.node.setSiblingIndex(200);
this.node.getChildByName("bloss").getChildByName("hp").getComponent(Label).string = this.value;
this.node.getChildByName("bloss").active=true;