public void Update(GameTime gameTime) { Ball.Update(gameTime, this); PlayerPaddle.Update(gameTime, this); ComputerPaddle.Update(gameTime, this); Score.Update(ComputerPaddle.Score.ToString(), PlayerPaddle.Score.ToString()); }
public void Update(GameTime gameTime) { Ball.Update(gameTime, this); PlayerPaddle.Update(gameTime, this); ComputerPaddle.Update(gameTime, this); ComputerPaddle.UpdateBallPosition(Ball.Position, Ball.Direction); Score.Update(ComputerPaddle.Score.ToString(), PlayerPaddle.Score.ToString()); }