public void Reset(float totalSeconds)
 {
     particleSystem = new ParticleSystem(startposition);
     smokeSystem = new SmokeSystem(smoke, startposition, camera);//får inte denna att fungera
     explosionManager = new ExplosionManager(spriteBatch, bangExplosion, camera, startposition);
     timeElapsed = 0;
 }
        public Explosion(SpriteBatch spritebatch, Texture2D Particle, Camera Camera, Texture2D Smoke, Texture2D BangExplosion)
        {
            timeElapsed = 0; //denna ska vara 0 när programmet startas

            camera = Camera;//så jag kan använda kameran i klassen!
            spriteBatch = spritebatch;
            particle = Particle;
            bangExplosion = BangExplosion;
            smoke = Smoke;

            Width = particle.Width; // posFramesX; //delar explosionens bredd med positions framesen!
            Height = particle.Height; // posFramesY;

            particleSystem = new ParticleSystem(startposition);
            smokeSystem = new SmokeSystem(smoke, startposition, camera);//får inte denna att fungera
            explosionManager = new ExplosionManager(spriteBatch, BangExplosion, camera, startposition);
        }