共通で使用する変数や関数
https://docs.godotengine.org/de/4.x/tutorials/scripting/singletons_autoload.html
全てのシーンで共通で使用する変数や関数は、プロジェクト>グローバルで定義する

# globaltestvar.gd
extends Node
var g_test_data = 99
# scene1.gd
func _xxxxxx():
print(Globaltestvar.g_test_data)