技能动画 继续完善

This commit is contained in:
2025-01-10 16:50:18 +08:00
parent 58fa6e0aa3
commit 56832c41fe
52 changed files with 786 additions and 695 deletions

View File

@@ -60,9 +60,6 @@ export class SkillCom extends CCComp {
onBeginContact (seCol: Collider2D, otCol: Collider2D, contact: IPhysics2DContact | null) {
if(otCol.group != seCol.group&&otCol.tag ==0){
this.atk_count+=1
if(this.run==1 ){
this.is_destroy=true
}
}
if(otCol.group == seCol.group&&otCol.tag ==0&&(this.tg==2||this.tg==0)){
this.to_console("skill onBeginContact 是对自己人的buff",seCol,otCol)