perf: improved networking code to use the new events

This commit is contained in:
2025-05-31 20:25:30 +03:00
parent 52682d42b6
commit 8901a5469f
7 changed files with 45 additions and 45 deletions

View File

@@ -71,7 +71,7 @@ public class PaddleBehaviour(Keys Up, Keys Down, float High, float Low, float Sp
rigidBody.Velocity = Vector2D.Zero;
}
public void OnServerPacketArrived(PaddleKeyStatePacket packet, string from)
public void OnServerPacketArrived(string sender, PaddleKeyStatePacket packet)
{
isUpPressed = packet.IsUpPressed;
isDownPressed = packet.IsDownPressed;