Assets.Scripts.Extensions.ParticleSystemExtensions.PlayEnable C# (CSharp) Method

PlayEnable() public static method

public static PlayEnable ( this particleSystem ) : void
particleSystem this
return void
        public static void PlayEnable(this ParticleSystem particleSystem)
        {
            particleSystem.Simulate(0.0f, true, true);
            var emission = particleSystem.emission;
            emission.enabled = true;
            particleSystem.Play();
        }
    }
ParticleSystemExtensions