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) {} }