update() public method

Allows the unit to update itself.
public update ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
return void
Example #1
0
        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public override void Update(GameTime gameTime)
        {
            // Calculate the base transformation by combining translation, rotation, and scaling
            cModel.updateBaseWorld(unit.position, unit.rotation, unit.scale, unit.baseWorld);

            unit.update(gameTime);
            base.Update(gameTime);
        }