the problem:- MissingReferenceException: The variable doesn't exist anymore.
Answer :- The inspector of game object will have a field in the inspector(You declared in visual studio C#) where you can give this variable a value.
⭐Happy coding⭐
Tags:
Unity