ScrollingShooter.GameObjectManager.UpdateGameObject C# (CSharp) Method

UpdateGameObject() public method

Updates the position of a GameObject within the axis lists
public UpdateGameObject ( uint gameObjectID ) : void
gameObjectID uint The ID of the game object to update
return void
        public void UpdateGameObject(uint gameObjectID)
        {
            // Grab our bounding box
            BoundingBox box = boundingBoxes[gameObjectID];

            // Grab our game object
            GameObject go = gameObjects[gameObjectID];

            // Apply the changes to bounding box
            box.Left.Value = go.Bounds.Left;
            box.Right.Value = go.Bounds.Right;
            box.Top.Value = go.Bounds.Top;
            box.Bottom.Value = go.Bounds.Bottom;
        }