Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnCollisionEnter(Collision theCollision){
- if(theCollision.gameObject.name == "Floor"){
- Debug.Log("Hit the floor");
- }else if(theCollision.gameObject.name == "Wall"){
- Debug.Log("Hit the wall");
- }
Add Comment
Please, Sign In to add comment