public ExplosionView(Camera camera, SpriteBatch spriteBatch, Vector2 explosionPosition, Texture2D explosionTexture) { this.camera = camera; this.spriteBatch = spriteBatch; this.explosionPosition = explosionPosition; this._explosionTexture = explosionTexture; explosion = new Explosion(_explosionTexture, spriteBatch, camera, explosionPosition); }
// construct public GameView(SpriteBatch sprite, Camera cam, Texture2D explosionTexture) { camera = cam; spriteBatch = sprite; explosion = new Explosion(explosionTexture); }