public override void Update(GameTime gameTime) { //ウィンドウ下端をはみ出ているか検査 if ((Position.Y + Size.Y) >= Constants.SCREEN_SIZE.Y) { OnGameOver?.Invoke(this, EventArgs.Empty); return; } //ウィンドウ端との衝突 ReflectFromWindow(); //ブロックとの衝突 ReflectFromBlocks(); //パドルとの衝突 if (paddle.Intersects(this)) { ReflectFromPaddle(); } this.Position += Vector; // this.Position = Constants.Clamp(Position, Size); }