Advertisement
MrsMcLead

Destroy Upon Collision

Nov 22nd, 2013
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function OnCollisionEnter (myCollision : Collision)
  3. {
  4.     if(myCollision.gameObject.name == "Physics_Cube")
  5.     Destroy(myCollision.gameObject) ;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement