Skip to content

Instantly share code, notes, and snippets.

@poemdexter
Created July 7, 2014 04:53
Show Gist options
  • Save poemdexter/348cacef7715fa8e216e to your computer and use it in GitHub Desktop.
Save poemdexter/348cacef7715fa8e216e to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class KillParticleEffect : MonoBehaviour
{
void Update()
{
if (!particleSystem.IsAlive())
Destroy(this.gameObject);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment