PGCGame.Ship.Options_ScreenResolutionChanged C# (CSharp) Method

Options_ScreenResolutionChanged() private method

private Options_ScreenResolutionChanged ( object sender, ViewportEventArgs e ) : void
sender object
e PGCGame.CoreTypes.ViewportEventArgs
return void
        void Options_ScreenResolutionChanged(object sender, ViewportEventArgs e)
        {
            _healthBar.Position = new Vector2(X - (_healthBar.Width / 2), Y - (Height / 1.5f));
        }