Exemplo n.º 1
0
        // Generated Methods
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (mCollision.Parent == null)
            {
                mCollision.CopyAbsoluteToRelative();
                mCollision.AttachTo(this, false);
            }
            Collision.Height  = 100f;
            Collision.Width   = 75f;
            Collision.Color   = Color.Red;
            Collision.Visible = true;
            if (Sprite.Parent == null)
            {
                Sprite.CopyAbsoluteToRelative();
                Sprite.AttachTo(this, false);
            }
            Sprite.Texture      = PlayerTexture;
            Sprite.TextureScale = 1f;
            if (Sprite.Parent == null)
            {
                Sprite.Z = 5f;
            }
            else
            {
                Sprite.RelativeZ = 5f;
            }
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 2
0
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            SpriteInstance.Texture            = tiny_ship;
            SpriteInstance.LeftTexturePixel   = 0f;
            SpriteInstance.RightTexturePixel  = 32f;
            SpriteInstance.TopTexturePixel    = 4f;
            SpriteInstance.BottomTexturePixel = 27f;
            SpriteInstance.TextureScale       = 1f;
            if (mAxisAlignedRectangleInstance.Parent == null)
            {
                mAxisAlignedRectangleInstance.CopyAbsoluteToRelative();
                mAxisAlignedRectangleInstance.AttachTo(this, false);
            }
            AxisAlignedRectangleInstance.Width   = 32f;
            AxisAlignedRectangleInstance.Height  = 32f;
            AxisAlignedRectangleInstance.Visible = false;
            mGeneratedCollision = new FlatRedBall.Math.Geometry.ShapeCollection();
            mGeneratedCollision.AxisAlignedRectangles.AddOneWay(mAxisAlignedRectangleInstance);
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 3
0
        // Generated Methods
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (mCollision.Parent == null)
            {
                mCollision.CopyAbsoluteToRelative();
                mCollision.AttachTo(this, false);
            }
            Collision.Width   = 32f;
            Collision.Height  = 32f;
            Collision.Visible = false;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            SpriteInstance.TextureScale     = 2f;
            SpriteInstance.AnimationChains  = AnimationChainListFile;
            SpriteInstance.CurrentChainName = "Enemy";
            if (mBulletPosRect.Parent == null)
            {
                mBulletPosRect.CopyAbsoluteToRelative();
                mBulletPosRect.AttachTo(this, false);
            }
            BulletPosRect.Width   = 5f;
            BulletPosRect.Height  = 5f;
            BulletPosRect.Visible = false;
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 4
0
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            SpriteInstance.Texture      = null;
            SpriteInstance.TextureScale = 1f;
            SpriteInstance.UseAnimationRelativePosition = true;
            SpriteInstance.AnimationChains  = SkeletonAnimation;
            SpriteInstance.CurrentChainName = "Idle";
            if (mHitbox.Parent == null)
            {
                mHitbox.CopyAbsoluteToRelative();
                mHitbox.AttachTo(this, false);
            }
            Hitbox.Width        = 32f;
            Hitbox.Height       = 32f;
            mGeneratedCollision = new FlatRedBall.Math.Geometry.ShapeCollection();
            mGeneratedCollision.AxisAlignedRectangles.AddOneWay(mHitbox);
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 5
0
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            SpriteInstance.Texture            = ufo;
            SpriteInstance.LeftTexturePixel   = 22f;
            SpriteInstance.RightTexturePixel  = 331f;
            SpriteInstance.TopTexturePixel    = 22f;
            SpriteInstance.BottomTexturePixel = 229f;
            SpriteInstance.TextureScale       = 0.125f;
            SpriteInstance.AnimationChains    = EnemyAnimation;
            SpriteInstance.CurrentChainName   = "Flying";
            #if FRB_MDX
            SpriteInstance.ColorOperation = Microsoft.DirectX.Direct3D.TextureOperation.Texture;
            #else
            SpriteInstance.ColorOperation = FlatRedBall.Graphics.ColorOperation.Texture;
            #endif
            if (mAxisAlignedRectangleInstance.Parent == null)
            {
                mAxisAlignedRectangleInstance.CopyAbsoluteToRelative();
                mAxisAlignedRectangleInstance.AttachTo(this, false);
            }
            AxisAlignedRectangleInstance.Width   = 32f;
            AxisAlignedRectangleInstance.Height  = 32f;
            AxisAlignedRectangleInstance.Visible = false;
            mGeneratedCollision = new FlatRedBall.Math.Geometry.ShapeCollection();
            mGeneratedCollision.AxisAlignedRectangles.AddOneWay(mAxisAlignedRectangleInstance);
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 6
0
        // Generated Methods
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (TextInstance.Parent == null)
            {
                TextInstance.CopyAbsoluteToRelative();
                TextInstance.AttachTo(this, false);
            }
            TextInstance.DisplayText     = "TEEEST";
            TextInstance.Font            = MazetechFont;
            TextInstance.NewLineDistance = 9f;
            TextInstance.Scale           = 6f;
            TextInstance.Spacing         = 6f;
            if (TextInstance.Parent == null)
            {
                TextInstance.Z = 15f;
            }
            else
            {
                TextInstance.RelativeZ = 15f;
            }
            TextInstance.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center;
            TextInstance.VerticalAlignment   = FlatRedBall.Graphics.VerticalAlignment.Center;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            SpriteInstance.Texture      = MessageTexture;
            SpriteInstance.TextureScale = 2.5f;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.Z = -10f;
            }
            else
            {
                SpriteInstance.RelativeZ = -10f;
            }
            SpriteInstance.Visible = true;
            if (mCollision.Parent == null)
            {
                mCollision.CopyAbsoluteToRelative();
                mCollision.AttachTo(this, false);
            }
            Collision.Color   = Color.Red;
            Collision.Height  = 200f;
            Collision.Visible = false;
            Collision.Width   = 32f;
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 7
0
        // Generated Methods
        public override void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            base.PostInitialize();
            if (mCollision.Parent == null)
            {
                mCollision.CopyAbsoluteToRelative();
                mCollision.AttachTo(this, false);
            }
            Collision.Height = 48f;
            Collision.Width  = 28f;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            SpriteInstance.AnimationChains  = AnimationChainListFile;
            SpriteInstance.TextureScale     = 1f;
            SpriteInstance.PixelSize        = 1.5f;
            SpriteInstance.CurrentChainName = "StandRight";
            if (HandSprite.Parent == null)
            {
                HandSprite.CopyAbsoluteToRelative();
                HandSprite.AttachTo(this, false);
            }
            HandSprite.AnimationChains  = AnimationChainListFile;
            HandSprite.TextureScale     = 1f;
            HandSprite.PixelSize        = 1.5f;
            HandSprite.CurrentChainName = "Hand";
            if (mGunRectangle.Parent == null)
            {
                mGunRectangle.CopyAbsoluteToRelative();
                mGunRectangle.AttachTo(this, false);
            }
            GunRectangle.Height  = 5f;
            GunRectangle.Visible = false;
            GunRectangle.Width   = 5f;
            if (mFedoraSprite.Parent == null)
            {
                mFedoraSprite.CopyAbsoluteToRelative();
                mFedoraSprite.AttachTo(this, false);
            }
            FedoraSprite.AnimationChains  = AnimationChainListFile;
            FedoraSprite.PixelSize        = 1f;
            FedoraSprite.CurrentChainName = "Fedora";
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
        // Generated Methods
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (mCollision.Parent == null)
            {
                mCollision.CopyAbsoluteToRelative();
                mCollision.AttachTo(this, false);
            }
            Collision.Color   = Color.Red;
            Collision.Height  = 64f;
            Collision.Visible = false;
            Collision.Width   = 32f;
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (mAxisAlignedRectangleInstance.Parent == null)
            {
                mAxisAlignedRectangleInstance.CopyAbsoluteToRelative();
                mAxisAlignedRectangleInstance.AttachTo(this, false);
            }
            AxisAlignedRectangleInstance.Width  = 128f;
            AxisAlignedRectangleInstance.Height = 128f;
            AxisAlignedRectangleInstance.Color  = Microsoft.Xna.Framework.Color.Red;
            mGeneratedCollision = new FlatRedBall.Math.Geometry.ShapeCollection();
            mGeneratedCollision.AxisAlignedRectangles.AddOneWay(mAxisAlignedRectangleInstance);
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 10
0
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            SpriteInstance.Texture            = M484BulletCollection1;
            SpriteInstance.LeftTexturePixel   = 376f;
            SpriteInstance.RightTexturePixel  = 415f;
            SpriteInstance.TopTexturePixel    = 316f;
            SpriteInstance.BottomTexturePixel = 327f;
            SpriteInstance.TextureScale       = 0.5f;
            if (mAxisAlignedRectangleInstance.Parent == null)
            {
                mAxisAlignedRectangleInstance.CopyAbsoluteToRelative();
                mAxisAlignedRectangleInstance.AttachTo(this, false);
            }
            if (AxisAlignedRectangleInstance.Parent == null)
            {
                AxisAlignedRectangleInstance.X = -0.009895243f;
            }
            else
            {
                AxisAlignedRectangleInstance.RelativeX = -0.009895243f;
            }
            if (AxisAlignedRectangleInstance.Parent == null)
            {
                AxisAlignedRectangleInstance.Y = -0.04981309f;
            }
            else
            {
                AxisAlignedRectangleInstance.RelativeY = -0.04981309f;
            }
            AxisAlignedRectangleInstance.Width   = 19f;
            AxisAlignedRectangleInstance.Height  = 5f;
            AxisAlignedRectangleInstance.Visible = false;
            mGeneratedCollision = new FlatRedBall.Math.Geometry.ShapeCollection();
            mGeneratedCollision.AxisAlignedRectangles.AddOneWay(mAxisAlignedRectangleInstance);
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 11
0
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (mAxisAlignedRectangleInstance.Parent == null)
            {
                mAxisAlignedRectangleInstance.CopyAbsoluteToRelative();
                mAxisAlignedRectangleInstance.AttachTo(this, false);
            }
            if (AxisAlignedRectangleInstance.Parent == null)
            {
                AxisAlignedRectangleInstance.Y = -2f;
            }
            else
            {
                AxisAlignedRectangleInstance.RelativeY = -2f;
            }
            AxisAlignedRectangleInstance.Width   = 8f;
            AxisAlignedRectangleInstance.Height  = 12.5f;
            AxisAlignedRectangleInstance.Visible = false;
            if (mBallCatchArea.Parent == null)
            {
                mBallCatchArea.CopyAbsoluteToRelative();
                mBallCatchArea.AttachTo(this, false);
            }
            BallCatchArea.Radius  = 16f;
            BallCatchArea.Visible = false;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            SpriteInstance.TextureScale     = 0.25f;
            SpriteInstance.AnimationChains  = AnimationChainListFile;
            SpriteInstance.CurrentChainName = "Idle";
            mGeneratedCollision             = new FlatRedBall.Math.Geometry.ShapeCollection();
            Collision.AxisAlignedRectangles.AddOneWay(mAxisAlignedRectangleInstance);
            Collision.Circles.AddOneWay(mBallCatchArea);
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 12
0
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            SpriteInstance.Texture            = shells;
            SpriteInstance.LeftTexturePixel   = 664f;
            SpriteInstance.RightTexturePixel  = 718f;
            SpriteInstance.TopTexturePixel    = 591f;
            SpriteInstance.BottomTexturePixel = 615f;
            SpriteInstance.TextureScale       = 1f;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.RotationZ = 4.71f;
            }
            else
            {
                SpriteInstance.RelativeRotationZ = 4.71f;
            }
            if (mCollisionBox.Parent == null)
            {
                mCollisionBox.CopyAbsoluteToRelative();
                mCollisionBox.AttachTo(this, false);
            }
            CollisionBox.Width   = 24f;
            CollisionBox.Height  = 52f;
            CollisionBox.Visible = false;
            mGeneratedCollision  = new FlatRedBall.Math.Geometry.ShapeCollection();
            mGeneratedCollision.AxisAlignedRectangles.AddOneWay(mCollisionBox);
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 13
0
        public override void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            base.PostInitialize();
            if (mAxisAlignedRectangleInstance.Parent == null)
            {
                mAxisAlignedRectangleInstance.CopyAbsoluteToRelative();
                mAxisAlignedRectangleInstance.AttachTo(this, false);
            }
            AxisAlignedRectangleInstance.Width  = 32f;
            AxisAlignedRectangleInstance.Height = 32f;
            if (LightOrShadowSprite.Parent == null)
            {
                LightOrShadowSprite.CopyAbsoluteToRelative();
                LightOrShadowSprite.AttachTo(this, false);
            }
            if (LightOrShadowSprite.Parent == null)
            {
                base.LightOrShadowSprite.Z = -1f;
            }
            else
            {
                base.LightOrShadowSprite.RelativeZ = -1f;
            }
            base.LightOrShadowSprite.Texture            = AllParticles;
            base.LightOrShadowSprite.LeftTexturePixel   = 1792f;
            base.LightOrShadowSprite.RightTexturePixel  = 2048f;
            base.LightOrShadowSprite.TopTexturePixel    = 1792f;
            base.LightOrShadowSprite.BottomTexturePixel = 2048f;
            base.LightOrShadowSprite.TextureScale       = 1f;
            base.LightOrShadowSprite.AnimationChains    = BaseProjectileLightAnimationChainListFile;
            base.LightOrShadowSprite.CurrentChainName   = "Light_Shot";
            #if FRB_MDX
            LightOrShadowSprite.ColorOperation = Microsoft.DirectX.Direct3D.TextureOperation.Modulate;
            #else
            base.LightOrShadowSprite.ColorOperation = FlatRedBall.Graphics.ColorOperation.Modulate;
            #endif
            base.LightOrShadowSprite.Red   = 0.8f;
            base.LightOrShadowSprite.Green = 0.8f;
            base.LightOrShadowSprite.Blue  = 0.9f;
            base.LightOrShadowSprite.Alpha = 0.3f;
            base.LightOrShadowSprite.ParentRotationChangesPosition = false;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            if (SpriteInstance.Parent == null)
            {
                base.SpriteInstance.Z = 1f;
            }
            else
            {
                base.SpriteInstance.RelativeZ = 1f;
            }
            base.SpriteInstance.TextureScale     = 0.5f;
            base.SpriteInstance.AnimationChains  = ElectricProjectileAnimationChainListFile;
            base.SpriteInstance.CurrentChainName = "Shot";
            base.SpriteInstance.Visible          = true;
            base.SpriteInstance.ParentRotationChangesPosition = false;
            if (mCircleInstance.Parent == null)
            {
                mCircleInstance.CopyAbsoluteToRelative();
                mCircleInstance.AttachTo(this, false);
            }
            base.CircleInstance.Radius = 16f;
            base.CircleInstance.Color  = Microsoft.Xna.Framework.Color.Red;
            base.CircleInstance.ParentRotationChangesPosition = false;
            mGeneratedCollision = new FlatRedBall.Math.Geometry.ShapeCollection();
            mGeneratedCollision.AxisAlignedRectangles.AddOneWay(mAxisAlignedRectangleInstance);
            mGeneratedCollision.Circles.AddOneWay(mCircleInstance);
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }
Exemplo n.º 14
0
        public virtual void PostInitialize()
        {
            bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue;

            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true;
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.CopyAbsoluteToRelative();
                SpriteInstance.AttachTo(this, false);
            }
            if (SpriteInstance.Parent == null)
            {
                SpriteInstance.Z = 10f;
            }
            else
            {
                SpriteInstance.RelativeZ = 10f;
            }
            SpriteInstance.Texture          = null;
            SpriteInstance.TextureScale     = 0.75f;
            SpriteInstance.AnimationChains  = AnimationChain;
            SpriteInstance.CurrentChainName = "Idle";
            if (TextInstance.Parent == null)
            {
                TextInstance.CopyAbsoluteToRelative();
                TextInstance.AttachTo(this, false);
            }
            TextInstance.DisplayText         = "Player";
            TextInstance.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center;
            if (TextInstance.Parent == null)
            {
                TextInstance.Y = 32f;
            }
            else
            {
                TextInstance.RelativeY = 32f;
            }
            if (mHitbox.Parent == null)
            {
                mHitbox.CopyAbsoluteToRelative();
                mHitbox.AttachTo(this, false);
            }
            if (Hitbox.Parent == null)
            {
                Hitbox.Z = 15f;
            }
            else
            {
                Hitbox.RelativeZ = 15f;
            }
            Hitbox.Width   = 32f;
            Hitbox.Height  = 32f;
            Hitbox.Visible = false;
            Hitbox.RepositionDirections = FlatRedBall.Math.Geometry.RepositionDirections.All;
            if (WeaponInstance.Parent == null)
            {
                WeaponInstance.CopyAbsoluteToRelative();
                WeaponInstance.AttachTo(this, false);
            }
            mGeneratedCollision = new FlatRedBall.Math.Geometry.ShapeCollection();
            mGeneratedCollision.AxisAlignedRectangles.AddOneWay(mHitbox);
            FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd;
        }