public void AddBall() { Ball ball = new Ball() { Radius = BallRadius }; ball.Randomize(_graphicsDevice.Viewport.Bounds); _balls.Add(ball); }
public void Initialize() { _whiteTex = SolidColorTexture(_graphicsDevice, Color.White); Ball ball1 = new Ball() { Radius = BallRadius }; ball1.Randomize(_graphicsDevice.Viewport.Bounds); _balls = new List<Ball> { ball1 }; }
public void AddBall() { Ball ball = new Ball() { Radius = BallRadius }; ball.Randomize(_graphicsDevice.Viewport.Bounds); _balls.Add(ball); }
public void Initialize() { _whiteTex = SolidColorTexture(_graphicsDevice, Color.White); Ball ball1 = new Ball() { Radius = BallRadius }; ball1.Randomize(_graphicsDevice.Viewport.Bounds); _balls = new List <Ball> { ball1 }; }