Newbie getting compiler errors with VS.

Hi

I am an absolute beginner trying to follow this tutorial

to get a feel for basic game design and coding.

I keep getting the following compiler errors in unity:

Assets\PlayerMovement.cs(60,25): error CS1061: ‘CharacterAnimation’ does not contain a definition for ‘Walk’ and no accessible extension method ‘Walk’ accepting a first argument of type ‘CharacterAnimation’ could be found (are you missing a using directive or an assembly reference?)

Assets\PlayerMovement.cs(63,25): error CS1061: ‘CharacterAnimation’ does not contain a definition for ‘Walk’ and no accessible extension method ‘Walk’ accepting a first argument of type ‘CharacterAnimation’ could be found (are you missing a using directive or an assembly reference?)

I have checked both files and they seem identical to his and the definition does seem to be in CharacterAnimation. Am I missing something obvious?

CS files attached.

Thanks in advance for any help anyone might be able to give.

6072948–658524–PlayerMovement.cs (1.64 KB)
6072948–658527–CharacterAnimation.cs (880 Bytes)

The class in CharacterAnimation.cs is named PlayerAnimation. Presumably it should be CharacterAnimation.

Try rename your class in your CharacterAnimation file to CharacterAnimation instead of PlayerAnimation (or change your file name), class and file name need to match

Oh my god.

Thank you so much. The tutorial guy changed the name and I must’ve not caught it.

I feel like an utter dunce now. I am going to scuttle off in shame!

Thank you.