using UnityEngine; public class Spark : MonoBehaviour { public void AnimationFinished() { Destroy(gameObject); } }