Assets\Scripts\Player system\PlayerOxygen.cs(10,33): error CS0236: A field initializer cannot refere

So you know, you should use code-tags when posting code and not plain text. Also, the line number you show would be clear when doing so. Right now, we’d have to count lines. You can also edit your post above.

EDIT: You already used this in a previous post. Why not now?

That said, what’s not clear about the error? Are you new to programming perhaps or have searched for this error and don’t understand what it’s saying? Which part is confusing? Do you want to know what a field is? A field initializer? The meaning of Static non-static?

1 Like