You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
491 B
16 lines
491 B
1 week ago
|
import VibrateMgr from "./VibrateMgr";
|
||
|
|
||
|
const { ccclass, property } = cc._decorator;
|
||
|
|
||
|
@ccclass
|
||
|
export default class ballphysics extends cc.Component {
|
||
|
onBeginContact(contact: cc.PhysicsContact, selfCollider: cc.PhysicsBoxCollider, otherCollider: cc.PhysicsBoxCollider) {
|
||
|
if (selfCollider.tag == 4 || selfCollider.tag == 5 || selfCollider.tag == 6 || selfCollider.tag == 7) {
|
||
|
} else {
|
||
|
VibrateMgr.vibrateShort_custom();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// update (dt) {}
|
||
|
}
|