Trouble connecting Signals from GDScript to C#

Godot Version

4.3 Stable

Question

I am having trouble creating a C# version of a GDScript project.
Using GDScript, I created a Deadzone that exits the game in case the Player reaches out of bounds.

# Called when the player touches the deadzone
func _on_hitbox_area_entered(area: Area2D) -> void:
		get_tree().quit()

This is my Node Tree setup for the Player.

Screenshot from 2024-09-04 14-18-04

I added a Scene Group for deadzone
I added a Scene Group to Hitbox titled player

I tried refering to the C# API differences to GDScript but I could not understand any of the comparisons.

Could someone please help me with this?

you trying connect signal, create signal?

C# will be

//  Called when the player touches the deadzone
public void OnHitboxAreaEnter(Area2D area)
{
 GetTree().Quit();
}

pick and connect in signal inspector

2 Likes