战斗管理系统基础
This commit is contained in:
@@ -26,7 +26,7 @@ export class TooltipCom extends CCComp {
|
||||
start() {
|
||||
switch(this.stype){
|
||||
case 1:
|
||||
this.node.setSiblingIndex(1);
|
||||
this.node.setSiblingIndex(100);
|
||||
this.node.getChildByName("loss_life").getChildByName("hp").getComponent(Label).string = this.value;
|
||||
this.node.getChildByName("loss_life").active=true;
|
||||
this.scheduleOnce(()=>{
|
||||
@@ -34,7 +34,7 @@ export class TooltipCom extends CCComp {
|
||||
},0.5)
|
||||
break
|
||||
case 2:
|
||||
this.node.setSiblingIndex(1);
|
||||
this.node.setSiblingIndex(110);
|
||||
this.node.getChildByName("add_life").getChildByName("hp").getComponent(Label).string = this.value;
|
||||
this.node.getChildByName("add_life").active=true;
|
||||
this.scheduleOnce(()=>{
|
||||
@@ -42,7 +42,7 @@ export class TooltipCom extends CCComp {
|
||||
},0.5)
|
||||
break
|
||||
case 4:
|
||||
this.node.setSiblingIndex(2);
|
||||
this.node.setSiblingIndex(200);
|
||||
this.node.getChildByName("bloss").getChildByName("hp").getComponent(Label).string = this.value;
|
||||
this.node.getChildByName("bloss").active=true;
|
||||
this.scheduleOnce(()=>{
|
||||
|
||||
Reference in New Issue
Block a user