Пример #1
0
        public BulletEmitter(GameObject newParent, Vector2 newPosition, bool oneshot = false, BulletEmitterType type = BulletEmitterType.Invisible)
        {
            Parent = newParent;
            thisScene = newParent.thisScene;
            Center = newPosition;
            Type = type;

            if (oneshot)
                FlaggedForRemoval = true;

            Initialize();
        }
        public BulletEmitter(GameObject newParent, Vector2 newPosition, bool oneshot = false, BulletEmitterType type = BulletEmitterType.Invisible)
        {
            Parent    = newParent;
            thisScene = newParent.thisScene;
            Center    = newPosition;
            Type      = type;

            if (oneshot)
            {
                FlaggedForRemoval = true;
            }

            Initialize();
        }