Advertisement
333GameStudio

Bullet destroy (js)

Mar 6th, 2015
663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. var stars : ParticleEmitter;
  2.  
  3. function OnCollisionEnter (col : Collision) {
  4. var boom = Instantiate(stars, transform.position, transform.rotation);
  5. Destroy(boom.gameObject,0.52);
  6. Destroy(gameObject);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement