333GameStudio

Cover

Jul 19th, 2015
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function OnTriggerEnter(col : Collider){
  2. if(col.gameObject.tag == "Player"){
  3.  
  4. Destroy(gameObject);
  5.  
  6.  
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment