MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. code example
Example: MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
// I fixed this by making the variable(s) static