File size: 1,223 Bytes
670a607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import ObjectFactory from './ObjectFactory.js';

import AudioFactory from './audio/Factory.js';
import BallFactory from './ball/Factory.js';
import BarsFactory from './bars/Factory.js';
import BoxFactory from './box/Factory.js';
import ClockFactory from './clock/Factory.js';
import CubeFactory from './cube/Factory.js';
import CustomFactory from './custom/Factory.js';
import DotsFactory from './dots/Factory.js';
import FacebookFactory from './facebook/Factory.js';
import GridFactory from './grid/Factory.js';
import LosFactory from './los/Factory.js';
import OrbitFactory from './orbit/Factory.js';
import OvalFactory from './oval/Factory.js';
import PieFactory from './pie/Factory.js';
import PuffFactory from './puff/Factory.js';
import RadioFactory from './radio/Factory.js';
import RingsFactory from './rings/Factory.js';
import SpinnerFactory from './spinner/Factory.js';


class SpinnerPlugin extends Phaser.Plugins.ScenePlugin {
    constructor(scene, pluginManager) {
        super(scene, pluginManager);

        this.add = new ObjectFactory(scene);
    }

    start() {
        var eventEmitter = this.scene.events;
        eventEmitter.on('destroy', this.destroy, this);
    }
}
export default SpinnerPlugin;