in order to declare a variable in the script but initiallize it in the editor you use export variables, in gdscript you write "export" behind "var" which makes export var my_variable
and on c# you write something like this
[Export]
public int my_variable;
[Export]
I dont use c# but after looking it up i think this is how you declare an export variable in mono