14 private void OnEnable()
16 this.partcleTrail = base.gameObject.GetComponent<ParticleSystem>().trails;
17 this.lightPart = this.particleLight.transform.parent.gameObject.GetComponent<ParticleSystem>().lights;
23 this.partcleTrail.enabled = this.enableHaze;
24 this.lightPart.enabled = this.enableLight;
25 this.particleLight.range = this.lightRange;
26 this.particleLight.intensity = this.lightIntensity;
27 Color color = this.partcleTrail.colorOverLifetime.color;
28 color.a = this.hazeLevel / 255f;
29 this.partcleTrail.colorOverLifetime = color;
33 public bool enableLight =
true;
36 public bool enableHaze =
true;
39 public float lightRange = 300f;
42 public float lightIntensity = 1f;
46 public float hazeLevel = 200f;
50 public Light particleLight;
53 private ParticleSystem.TrailModule partcleTrail;
56 private ParticleSystem.LightsModule lightPart;