删除好多英雄 专精几个英雄,继续英雄页面

This commit is contained in:
2025-01-23 23:11:34 +08:00
parent 43fbf30e46
commit 14a40a24f1
229 changed files with 8045 additions and 102923 deletions

View File

@@ -17,6 +17,10 @@ export class EndAnmBomCom extends Component {
this.rigid = this.getComponent(RigidBody2D);
console.log("collider",this.collider,this.rigid)
this.rigid.sleep()
this.scheduleOnce(()=>{
this.rigid.wakeUp()
},0.5)
// this.collider.enabled = false
// if(this.base.box_group ==BoxSet.HERO) this.collider.group = BoxSet.MONSTER
// if(this.base.box_group ==BoxSet.MONSTER) this.collider.group = BoxSet.HERO
@@ -34,25 +38,27 @@ export class EndAnmBomCom extends Component {
this.onAnimationFinished()
console.log("[track %s][animation %s] complete: %s", trackEntry.trackIndex);
});
spine.setEventListener((trackEntry, event:any) => {
this.onEnvent(event)
// console.log("[track %s][animation %s] event: %s", trackEntry.trackIndex, event.data.name, event.intValue);
});
// spine.setEventListener((trackEntry, event:any) => {
// this.onEnvent(event)
// // console.log("[track %s][animation %s] event: %s", trackEntry.trackIndex, event.data.name, event.intValue);
// });
}
}
}
onAnimationFinished(){
if(!this.is_complete){
// this.collider.group = this.base.box_group
// this.node.active=false
// this.node.active=true
this.rigid.wakeUp()
// this.collider.enabled = true
console.log("动画结束,开始伤害")
}
// if(!this.is_complete){
// // this.collider.group = this.base.box_group
// // this.node.active=false
// // this.node.active=true
// this.rigid.wakeUp()
// // this.collider.enabled = true
// console.log("动画结束,开始伤害")
// }
this.rigid.wakeUp()
// this.collider.enabled = true
console.log("动画结束,开始伤害")
this.base.is_destroy = true
}