public void _on_Area2D_body_entered(Node2D obj) { if (obj.GetMeta("name").ToString() == "player") { GetTree().ChangeScene(SceneToLoad); } }