角色动画 确定
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user