public class Globals : Node
{
private Node Globals;
public override void _Ready()
{
Globals = GetNode("/root/global_variables");
GD.Print(Globals.Get("player_score"));
}
}
this is a example of how to get player_score stored in global_variables.gd
there are other methods to get functions and set variables values like Globals.Call("function_name",properties);
and Globals.Set("variable_name", value);