AIA.Sprite.Update C# (CSharp) Method

Update() public method

public Update ( GameTime p_GameTime ) : void
p_GameTime Microsoft.Xna.Framework.GameTime
return void
        public virtual void Update(GameTime p_GameTime)
        {
            Particle.Update ( p_GameTime );
            Pos = new Vector2 ( Particle.Pos.X - Rect.Width / 2, Particle.Pos.Y - Rect.Height / 2 );

            _PosRect.X = ( int )Pos.X;
            _PosRect.Y = ( int )Pos.Y;
            _PosRect.Width = ( _Rect.Width );
            _PosRect.Height = ( _Rect.Height ) ;
        }