feat: Working Network Code
This commit is contained in:
@@ -67,10 +67,11 @@ public class PaddleBehaviour(Keys Up, Keys Down, float High, float Low, float Sp
|
||||
|
||||
public override void ReceiveData<T>(T data)
|
||||
{
|
||||
if (data is PaddleInputs paddleInputs)
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine($"Paddle Inputs Arrived: {paddleInputs.IsUpPressed}, {paddleInputs.IsDownPressed}");
|
||||
}
|
||||
if (data is not PaddleInputs paddleInputs)
|
||||
return;
|
||||
|
||||
isUpPressed = paddleInputs.IsUpPressed;
|
||||
isDownPressed = paddleInputs.IsDownPressed;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
|
Reference in New Issue
Block a user