using UnityEngine; public class Particle: MonoBehaviour { private void Start() { // Get the ParticleSystem component ParticleSystem particleSystem = GetComponent(); // Play the particle system particleSystem.Play(); } }