Question by
giordanotavani2 · May 27 at 01:39 PM ·
newbiedestroygameobject
Trying to destroy a particle system
I'm new to unity and I'm doing a 3D game where you have to repair some pipes.
I was trying to destroy the particle system but it doesn't destroy, could you help me?
I am attaching the code below
using UnityEngine;
public class Example : MonoBehaviour
{
void OnCollisionEnter ( Collision collision )
{
Destroy( gameObject );
}
}
Comment
Your answer
Follow this Question
Related Questions
Unity 5 Loading Screen Script? 3 Answers
A Question about custom splash screens 1 Answer
Merge static C# script and old java script function (NewtonVR) Oculus Touch 2 Answers
How to resolve this lightning error? 0 Answers
NPC Animation 0 Answers