Below is my C# code, which is literally the SAME as the one in tutorial video, but I keep getting the “Expression denotes a type where a variable, value or method group was expected” error when I hit save. There are 3 errors all on the last line.
I browsed similar error questions but those were unable to help. Thanks!
I just had this same problem… I’ve searched for the past hour and a half before coming to find out that simply restarting Unity would fix the problem. I was getting error CS0120 regarding rigidbody.addforce and was sure it was my code but I had made 0 changes to it and it fixed itself on restart. lol oh well, hopefully others stumble across this page, even as closure so they’ll know the quick fix next time (after a good look at the code that it:D )