dd
This commit is contained in:
@@ -78,18 +78,18 @@ export class HeroCardViewComp extends CCComp {
|
||||
}
|
||||
do_active(){
|
||||
// console.log(this.node.getChildByName("active"),this.node.getChildByName("use"), this.node.getChildByName("bag"))
|
||||
// let active = this.node.getChildByName("active")
|
||||
// let use = this.node.getChildByName("use")
|
||||
// let bag = this.node.getChildByName("bag")
|
||||
// active.active = !active.active
|
||||
let active = this.node.getChildByName("active")
|
||||
active.active = !active.active
|
||||
// use.active = !use.active
|
||||
// bag.active = !bag.active
|
||||
this.alive=!this.alive
|
||||
if(this.alive){
|
||||
this.node.setScale(1.5,1.5,1)
|
||||
}else{
|
||||
this.node.setScale(1,1,0)
|
||||
}
|
||||
// this.alive=!this.alive
|
||||
// if(this.alive){
|
||||
// this.node.setScale(1.5,1.5,1)
|
||||
// }else{
|
||||
// this.node.setScale(1,1,0)
|
||||
// }
|
||||
|
||||
}
|
||||
no_active(){
|
||||
|
||||
Reference in New Issue
Block a user