Skip to main content

DeadPlugin

A class in Root.Township, Alta.Combat.

Atmosphere plugin used while the player is dead: fades the fog to a set density and, optionally, colour.

Constructors​

MemberWhat it is
DeadPlugin()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private Color fogColorFog and ambience colour. Default black.
private float fogDensityFog density to fade to. Default 0.5.
private bool isUpdatingFogColorWhether to also fade the fog colour.
private float lerpSpeedSpeed of the fade. Default 1.

Properties​

MemberWhat it is
override Color CurrentAmbience { get; }The plugin's fog colour, used as ambience.
override Color CurrentFog { get; }The plugin's fog colour.
override float CurrentFogDensity { get; }The plugin's fog density.

Methods​

MemberWhat it is
protected override void Enabled()When turned on, takes priority, stops other fog density control and lerps density (and colour if set) to its values.