fix: score sounds appearing earlier fixed

This commit is contained in:
Syntriax 2025-07-27 20:34:27 +03:00
parent d30d1e0d5c
commit 52d5c8fc47

View File

@ -70,7 +70,9 @@ public class Ball : Behaviour2D, IFirstFrameUpdate, ILoadContent, IPhysicsUpdate
RigidBody.Velocity = information.Detected.Transform.Position.FromTo(information.Detector.Transform.Position).Normalized * RigidBody.Velocity.Magnitude;
else
RigidBody.Velocity = RigidBody.Velocity.Reflect(information.Normal);
networkServer?.SendToAll(new BallUpdatePacket(this));
if (information.Detected.Transform.BehaviourController.GetBehaviour<ScoreWall>() is null)
networkServer?.SendToAll(new BallUpdatePacket(this));
}
public Ball() { }