using UnityEngine;
namespace Watermelon
{
public static class ParticlesExtensions
{
///
/// Extends the functionality of the ParticleSystem class to initiate playback of the particle system
/// with an optional delay, utilizing the PlayParticle method from the ParticlesController.
///
/// The ParticleSystem instance to be played.
/// The duration (in seconds) to wait before playing the particle system. Default is 0.
/// A ParticleCase representing the activated particle system.
public static ParticleCase PlayCase(this ParticleSystem particleSystem, float delay = 0)
{
return ParticlesController.PlayParticle(particleSystem, delay);
}
}
}