I click on the button and generates this error:
0:00:03:0129 - Error calling method from signal 'pressed': 'CanvasLayer(Interfaz.cs)::_on_StartButton_pressed': Method not found.
----------
Type:Error
Description:
Time: 0:00:03:0129
C Error: Error calling method from signal 'pressed': 'CanvasLayer(Interfaz.cs)::_on_StartButton_pressed': Method not found.
C Source: core/object.cpp:1202
C Function: emit_signal
I do not know if this well this C# code:
public void OnStartButtonPressed()
{
Button startButton = (Button)GetNode("StartButton");
startButton.Hide();
EmitSignal("StartGame");
}
Why can the error give?