#error in c# unity

11 messages · Page 1 of 1 (latest)

worthy hedge
#

Ok so I have error CS1519 and I don't understand why. Ai told me it's probably a problem with the name of the file and the class but I made them have the same names and there is still an error. sorry for my english.

#

I am a beginner programmer

#

I'm on version 2022.3

minor shale
#

This isnt the right server for CSharp or Unity, this is the typescript server.

You'll find better luck on either the actual C# discord server or unity server

#

But the error itself says on line 8 of InputManager theres a problem

#

on line 9 you have private PlayerInput.OnFootActions which i don't think is valid

#

you need a type and a variable name for fields

#

eg private string myField;

#

but im not certain

#

you can't have certain character in variable names like a dot

#

if PlayerInput.OnFootActions is a type