public Charge(Vector3 position, GraphicsDevice gDevice, ContentManager Content) { graphicsDevice = gDevice; Position = position; Texture2D texture = Content.Load<Texture2D>("Particles/particle"); billboardEngine = new BillboardEngine(5, graphicsDevice); billboardEngine.Effect.Texture = texture; particleEffect = new ChargeParticleEffect(10000, graphicsDevice, texture, Color.Blue, Color.Green, 0.4f); particleEffect.VelocityScaling = 7.0f; }
public Charge(Vector3 position, GraphicsDevice gDevice, ContentManager Content) { graphicsDevice = gDevice; Position = position; Texture2D texture = Content.Load <Texture2D>("Particles/particle"); billboardEngine = new BillboardEngine(5, graphicsDevice); billboardEngine.Effect.Texture = texture; particleEffect = new ChargeParticleEffect(10000, graphicsDevice, texture, Color.Blue, Color.Green, 0.4f); particleEffect.VelocityScaling = 7.0f; }