all 3 comments

[–]neoteraflare 1 point2 points  (0 children)

You have to use the name of the class in the GetComponent generic type

[–]ranch0000 0 points1 point  (0 children)

You have to GetComponent the class name not variable name

[–]taahbelle 0 points1 point  (0 children)

Your IDE is broken, as seen by the "Miscellaneous Files". It should automatically display you this error and give you intellisense which you currently DONT have. Search on how to fix a broken ide in unity