Hi Connor,
Did you try any of my suggestions in my previous reply? Specifically my comment about whether or not you were running from Visual Studio instead of from Unity?
What it looks like you are doing, and it is a bit hard to tell from only the screenshot, but it looks like you are editing your code in Visual Studio, and then have pointed the debug editor to Unity. You are then pressing Run within Visual Studio, and this is generating your error.
Do this around the other way…
- create your script files initially from within Unity
- open them from within Unity, Visual Studio will launch and open the file
- make your code change and press save within Visual Studio
-
DO NOT click run within Visual Studio
- Go back into Unity and press the Play button
Let me know how you get on.