Asteroids.Classes.BasicBullet.Update C# (CSharp) Method

Update() public method

public Update ( GameTime gameTime, Vector2 direction ) : void
gameTime Microsoft.Xna.Framework.GameTime
direction Vector2
return void
        public override void Update(GameTime gameTime, Vector2 direction)
        {
            pos = pos + (direction * speed);
            fadeTime--;
            hitBox = new Rectangle((int)(pos.X - (texture.Width / 2)), (int)(pos.Y - (texture.Height / 2)), texture.Width, texture.Height);
        }