First of all I'm new to godot and trying to follow some tutorials to produce a very basic game, the current tutorial is teaching to make a game in which the player dodges enemies. However when a collision is detected nothing happens as the method cannot be found even though it all seems to be spelled correctly, giving the error:
emitsignal: Error calling method from signal 'bodyentered': 'Area2D(Player.cs)::PlayerHit': Method not found..
The connection is made in the ready procedure for the player.
Connect("body_entered", this, nameof(PlayerHit));
and this is the routine I'm trying to get it to call:
public void PlayerHit()
Hide(); // Player disappears after being hit.
Any help would be greatly appreciated.