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.
		
		
		
		
		
			
		
			
				
					
					
						
							15 lines
						
					
					
						
							491 B
						
					
					
				
			
		
		
	
	
							15 lines
						
					
					
						
							491 B
						
					
					
				| 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) {}
 | |
| }
 | |
| 
 |