diff --git a/src/Tests/ECS/Examples/General.cs b/src/Tests/ECS/Examples/General.cs index b16adc45..754886b7 100644 --- a/src/Tests/ECS/Examples/General.cs +++ b/src/Tests/ECS/Examples/General.cs @@ -257,14 +257,17 @@ public static void AddSignalHandler() var store = new EntityStore(); var player = store.CreateEntity(1); player.AddSignalHandler(signal => { - Console.WriteLine($"player collision with entity: {signal.Event.other.Id}"); - // > player collision with entity: 2 + Console.WriteLine($"collision signal - entity: {signal.Entity.Id} other: {signal.Event.other.Id}"); }); var npc = store.CreateEntity(2); // ... detect collision. e.g. with a collision system. In case of collision: player.EmitSignal(new CollisionSignal{ other = npc }); } +/* Output +collision signal - entity: 1 other: 2 +*/ + } } \ No newline at end of file