コード例 #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();
        }
コード例 #2
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();
        }