refactor: string id to IConnection parameters for sending network packets

This commit is contained in:
2025-06-22 20:35:00 +03:00
parent bc6aaa865a
commit 5cfed3ba56
4 changed files with 20 additions and 14 deletions

View File

@@ -75,7 +75,7 @@ public class PaddleBehaviour(Keys Up, Keys Down, float High, float Low, float Sp
isUpPressed = packet.IsUpPressed;
isDownPressed = packet.IsDownPressed;
networkServer?.SendToClient("*", new PaddleKeyStatePacket(this));
networkServer?.SendToAll(new PaddleKeyStatePacket(this));
}
public void OnClientPacketArrived(IConnection sender, PaddleKeyStatePacket packet)