public PaddleMultiplayer(int index, Vector2 startPosition) : base(index, startPosition) { _pongMultiplayerManager = (PongMultiplayerManager)ServiceLocator.Get <PongManager>(); _networkGameManager = ServiceLocator.Get <NetworkGameManager>(); }
public BallMultiplayer(Vector2 startPosition, float size, float speed, float speedIncrement) : base(startPosition, size, speed, speedIncrement) { _pongMultiplayerManager = (PongMultiplayerManager)PongManager; }