Compiler issue with script

You have already identified that there is a conflict between the name of your script and Unity’s built-in Character Controller component.

The solution is to use a different script name. As the script is attached to your Body GameObject, you could rename it, for example, BodyController.

You need to change both the name of the script and the name of the class within that script, as the class name and file name must be the same to enable the script component to be attached to a GameObject.

The red warning icon in the Console window indicates that there is also an error in your code. Double-click on this error message and the script will open and should take you to the line where the error is (in this case line 20, column 68, or the 68th character position from the left).

If you need help to fix the error, you will need to post your code, in which case, please use code tags to make your code easier to read.

Using code tags properly