Particle Emitter Manager in Container

Added Alpha and ScrollFactor Mixin to Particle Emitter Manager otherwise it crashes when added to the Container.
This commit is contained in:
TadejZupancic 2018-05-30 10:44:49 +02:00 committed by GitHub
parent 594fc3e27b
commit 6f7463f4f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,9 +22,11 @@ var Render = require('./ParticleManagerRender');
* @constructor
* @since 3.0.0
*
* @extends Phaser.GameObjects.Particles.Components.Alpha
* @extends Phaser.GameObjects.Particles.Components.Depth
* @extends Phaser.GameObjects.Particles.Components.Visible
* @extends Phaser.GameObjects.Particles.Components.Pipeline
* @extends Phaser.GameObjects.Particles.Components.ScrollFactor
* @extends Phaser.GameObjects.Particles.Components.Visible
*
* @param {Phaser.Scene} scene - The Scene to which this Emitter Manager belongs.
* @param {string} texture - The key of the Texture this Emitter Manager will use to render particles, as stored in the Texture Manager.
@ -36,9 +38,11 @@ var ParticleEmitterManager = new Class({
Extends: GameObject,
Mixins: [
Components.Alpha,
Components.Depth,
Components.Visible,
Components.Pipeline,
Components.ScrollFactor,
Components.Visible,
Render
],