Class error. I am new pls help

6406369--715099--Screenshot_1.png 6406369--715099--Screenshot_1.png
Why the MonoBehaviour class is not colored and why i cant define rigidbody2d as rb. I am at the beginning of coding and unity. I added rigidbody2d and collidor2d components to my player and trying to make it move but stuck at the first. Please someone help.

Line endings are semi colons in C#. In the future when you have a problem and looking for help make sure to clip us the error message from the console.

public Rigidbody2D rb;

nothing happend

There is no error message. I watch tutorials to make my player walk with w a s d. Doing the exact same thing but when they add script and opened it in visual studio the MonoBehaviour class was cyan colored. Mine is not

Rigidbody2D is not colored too

Try this.