mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
34 lines
570 B
TypeScript
34 lines
570 B
TypeScript
/// <reference path="../../_definitions.ts" />
|
|
|
|
module Phaser.Particles.Initializers {
|
|
|
|
export class Radius extends Initialize {
|
|
|
|
constructor(a,b,c) {
|
|
|
|
super();
|
|
|
|
this.radius = ParticleUtils.setSpanValue(a, b, c);
|
|
|
|
}
|
|
|
|
radius: Phaser.Particles.Span;
|
|
|
|
reset(a, b, c) {
|
|
|
|
this.radius = ParticleUtils.setSpanValue(a, b, c);
|
|
|
|
}
|
|
|
|
initialize(particle) {
|
|
|
|
particle.radius = this.radius.getValue();
|
|
particle.transform.oldRadius = particle.radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|