At the end of lecture 99 at the 2d unity course we add the function
void OnCollisionEnter2D(Collision2D other)
{
Destroy(gameObject);
}
this triggers “MissingRefrenceException: The object of type ‘GameObject’ has been destroyed but you are still trying to access it.”
Happens on the first shot and from what I see it completely destroys the prefab.
I am not sure how to solve it as it doesn’t happen in the lecture and I even downloaded the scripts from the lecture to make sure it is not something I have done.