Created
January 22, 2015 14:36
-
-
Save EsProgram/5d73f7e058bd32237469 to your computer and use it in GitHub Desktop.
Unity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using UnityEngine; | |
/// <summary> | |
/// パーティクルの自動破棄 | |
/// </summary> | |
public class ParticleAutoDestroy : MonoBehaviour | |
{ | |
private void Start() | |
{ | |
Destroy(gameObject, particleSystem.duration + particleSystem.startLifetime + particleSystem.startDelay + 1f); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment