Update C# signal documentation

Updates C# signal documentation and code examples to the new API in 4.0
This commit is contained in:
Raul Santos
2022-08-26 15:59:43 +02:00
parent 68c507cf8c
commit 3b36a94d35
13 changed files with 34 additions and 29 deletions

View File

@@ -107,7 +107,7 @@ Here is the code for the player using signals to emit the bullet:
public class Player : Sprite2D
{
[Signal]
delegate void Shoot(PackedScene bullet, Vector2 direction, Vector2 location);
delegate void ShootEventHandler(PackedScene bullet, Vector2 direction, Vector2 location);
private PackedScene _bullet = GD.Load<PackedScene>("res://Bullet.tscn");