Astroids.Classes.BasicBullet.Update C# (CSharp) Метод

Update() публичный Метод

public Update ( GameTime gameTime, Vector2 direction ) : void
gameTime Microsoft.Xna.Framework.GameTime
direction Vector2
Результат 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);
        }