Exemple #1
0
        internal override void removeFromParent()
        {
            base.removeFromParent();

            if (damage <= 0)
            {
                explosionEffect();
            }

            list.Remove(this);
            shooter.canShoot = true;

            emitterNode.particleBirthRate = 0;
            emitterNode.run(SKAction.removeFromParentAfterDelay(1.0f));
        }