mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 04:23:30 +00:00
22 lines
399 B
TypeScript
22 lines
399 B
TypeScript
|
/// <reference path="../../_definitions.ts" />
|
||
|
|
||
|
module Phaser.Particles.Initializers {
|
||
|
|
||
|
export class Mass extends Initialize {
|
||
|
|
||
|
constructor(a,b,c) {
|
||
|
super();
|
||
|
this.massPan = ParticleUtils.setSpanValue(a, b, c);
|
||
|
}
|
||
|
|
||
|
massPan: Phaser.Particles.Span;
|
||
|
|
||
|
initialize(target) {
|
||
|
target.mass = this.massPan.getValue();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|