Assets\Scripts\HealthController.cs(22,49): error CS1003: Syntax error, ',' expected

Please edit your post to use code-tags when posting code and not plain text.

The error tells you the line (22) and column numbers (49) so you only have to look there to see why it’s expecting a comma.

Around that area you’ll have a typo so just look at the code carefully or compare it to where you’re copying the code from.

The compiler might expect something but it’s nearly always because you made it expect that as you made a typo so look at the area but don’t take what the compiler expects as what’s wrong.

1 Like