mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Update C# signal documentation
Updates C# signal documentation and code examples to the new API in 4.0
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user