I am new to this engine and intermediate in the c sharp language.
I have a Pong project, and I would like to have a game over screen with a label that changes depending on who won the game.
I thought the easiest way to do this (while keeping only one scene for the end of the game), would be to create a singleton, or a global variable for all of the messages that can be displayed, as well as a number that can serve as an index.
However I have tried following the tutorial for singletons and autoload on the docs, and it still is not working as intended.
I have a cs file with a "WinnerVars" Class that inherits a node. It is in the autoload tab along with the Global scene.
I have tried to add an initialization expression into another scene like it says in the docs, but i get this error under GetNode:
"T Node.GetNode<T>(NodePath path) A field initializer cannot reference the non-static field, method, or property"

I have tried the forums, and reddit (someone there says I may have to add the singletons manually into the .csproj file. but I am not sure where or how)
Any help is appreciated! Thank you!