I have a class named SignalOrigin.cs and another class named EmitSignalTest.cs
The signal however is not found! ( I am new to Godot C# )
Here is the code:
( SignalOrigin.cs )
[Signal]
delegate void CreateBlock();
public void ABlock()
{
GD.Print("HELLO");
}
public override void _Ready()
{
this.Connect(nameof(CreateBlock), this, "ABlock");
}
( EmitSignalTest.cs )
if (Input.IsActionJustPressed("ui_accept"))
{
if(Materials[0] > 0)
{
EmitSignal("CreateBlock");
}
}