ParticleDestroy.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ParticleDestroy : MonoBehaviour
{

    void Start()
    {
                Destroy(gameObject, 4);
    }
 }
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.