On/Off particle system while entering trigger

How can I realize that in following situation: When player entering trigger,particle system with “Bang” effect turning on,and only in this case.I was trying to do this through .Play() and .Stop(),but particle just continue to play all time.That is my code:

public class Exp : MonoBehaviour {

private ParticleSystem boom;

void Start () {
    boom = GetComponent<ParticleSystem>();
    StopBoom();
}


private void OnTriggerEnter(Collider other)
{
    if (other.gameObject.CompareTag("Player"))
    {
        PlayBoom();
    }
     
}

void PlayBoom()
{
    boom.Play();
    boom.enableEmission = false;
}

void StopBoom()
{
    boom.Stop();
    boom.enableEmission = true;
}

}

enableEmission is obsolete now. Usually you only need Play and Stop. Your code however stops emission on play and starts emission on stop, which might be the reason why it keeps playing. Just use Start and Stop