角色动画 确定

This commit is contained in:
2024-08-26 07:33:26 +08:00
parent 68d7077e56
commit 4f96558d36
111 changed files with 54661 additions and 1391 deletions

View File

@@ -27,6 +27,7 @@ export class SkillCom extends CCComp {
is_destroy:boolean = false;
box_group:number = 0;
box_tag:number=0;
type:number = 1;
time:Timer = new Timer(0.01);
start() {
this.node.active=true
@@ -70,7 +71,9 @@ export class SkillCom extends CCComp {
onBeginContact (selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) {
if(otherCollider.group != selfCollider.group&&otherCollider.tag !=BoxSet.ATK_RANGE&&otherCollider.tag !=BoxSet.SKILL_TAG){
// console.log("skill onBeginContact",selfCollider.group,otherCollider.group)
this.is_destroy=true
if(this.type==1){
this.is_destroy=true
}
}
}
onPostSolve (selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) {