public override void Update(GameState gameState) { if (CollideWithFloor()) { gameState.RemoveLife(); ResetBall(); } else if (CollideWithRoof()) { Speed.YSpeed = -Speed.YSpeed; } else if (CollideWithWalls()) { Speed.XSpeed = -Speed.XSpeed; } else if (CollisionDetector.CollideWithGameObject(this, this._paddle)) { Speed.YSpeed = -Speed.YSpeed; } Position.Y += Speed.YSpeed; Position.X += Speed.XSpeed; }