Advertisement
Munchy2007

Part5c_5

Jan 10th, 2018
3,828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1.         void DestroyMissile()
  2.         {
  3.             trail.transform.SetParent(null);
  4.             trail.Stop(true, ParticleSystemStopBehavior.StopEmitting);
  5.             explosion.transform.SetParent(null);
  6.             explosion.Play();
  7.             Destroy(gameObject);
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement