< Summary

Class:DestroyParticlesOnFinish
Assembly:Utils
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/Utils/DestroyParticlesOnFinish.cs
Covered lines:0
Uncovered lines:3
Coverable lines:3
Total lines:14
Line coverage:0% (0 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
FixedUpdate()0%12300%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/Utils/DestroyParticlesOnFinish.cs

#LineLine coverage
 1using UnityEngine;
 2
 3public class DestroyParticlesOnFinish : MonoBehaviour
 4{
 5    [SerializeField] private ParticleSystem particles;
 6
 7    public void FixedUpdate()
 8    {
 09        if (particles != null && !particles.IsAlive())
 10        {
 011            Destroy(gameObject);
 12        }
 013    }
 14}

Methods/Properties

FixedUpdate()