14 private void OnEnable()
16 this.partcleMain = this.Haze.GetComponent<ParticleSystem>().main;
17 this.lightPart = this.particleLight.transform.parent.gameObject.GetComponent<ParticleSystem>().lights;
23 this.Haze.SetActive(this.enableHaze);
24 this.lightPart.enabled = this.enableLight;
25 this.particleLight.range = this.lightRange;
26 this.particleLight.intensity = this.lightIntensity;
27 Color color = this.partcleMain.startColor.color;
28 color.a = this.hazeLevel / 255f;
29 this.partcleMain.startColor = 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 = 120f;
50 public Light particleLight;
54 public GameObject Haze;
57 private ParticleSystem.MainModule partcleMain;
60 private ParticleSystem.LightsModule lightPart;