Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnCollisionEnter (myCollision : Collision)
- {
- if(myCollision.gameObject.name == "Physics_Cube")
- Destroy(myCollision.gameObject) ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement