Look at error, and it gives you three pieces of information:
Assets\scriprts\player.cs(21, 44): error CS1503: argument 2: cannot convert from 'charstate' to 'int'
Assets\scriprts\player.cs
The file the error was found in
(21, 44):
The line (21) and column (44) that it found the problem.
error CS1503: argument 2: cannot convert from 'charstate' to 'int'
The problem it found.
So open the file, go to line 21, and look at it (most text editors will use CTRL+G to go to a specific line number, or you can double click the error message in VS and it will go there):
set { animator.SetInteger("State", value); }
^
|
----- Column 44
Now read the error message: "cannot convert from 'charstate' to 'int'"
And it's pretty obvious: you cannot convert a charstate value - which is what you are passing to the property setter - to an integer - which is what the method expects.
Now, I have no idea what a "charstate" is, so I can't be specific - but you either need to cost it, convert it, or provide an explicit and / or implicit casting operator to your class in order to do that!