fix: score sounds appearing earlier fixed
This commit is contained in:
parent
d30d1e0d5c
commit
52d5c8fc47
@ -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() { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user