Advertisement
Guest User

Untitled

a guest
Aug 11th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class KillParticleEmitter : MonoBehaviour
  5. {
  6.     void Update ()
  7.     {
  8.         if(!particleSystem.IsAlive())
  9.         {
  10.             Destroy(gameObject);
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement