Advertisement
MrsMcLead

Untitled

Nov 25th, 2013
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var fire : ParticleEmitter;
  2.  
  3.  
  4. function OnCollisionEnter (myCollision : Collision)
  5. {
  6.     if(myCollision.gameObject.name == "Physics_Cube")
  7.     {
  8.     Destroy(myCollision.gameObject) ;
  9.     Instantiate(fire, transform.position, transform.rotation);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement