Not sure why but the Finish Line script would not trigger. I ended up putting the code for the finish line in the Crash Detector instead. I had tried to add the Finish Line script as a component to both my Finish Line object and the box collider for it, neither made a difference. This is what the code was. Not sure why it wouldn’t work.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class FinishLine : MonoBehaviour
{
void OnTriggerEnter2D(Collider2D other)
{
if (other.tag == "Player")
{
SceneManager.LoadScene(0);
}
}
}