I made changes to Pathfinder.cs, and unfortunately I tried to make a method called ‘pathfinder()’ by mistake. Visual Studio freaked out, and wouldn’t let me make any more methods. I switched over to Unity, and it said the pathfinder.cs script had an error and couldn’t continue until the error was cleared. I tried removing the component, I tried reimporting the (fixed) pathfinder.cs script. Nothing worked. I reverted to a save point in Sourcetree, and that fixed it. But I’d like to know how to get Unity to let go of a problem script and let me fix it.
(I recall a video where a component was broken and someone said not to remove it, there was another answer… ring any bells?)