A class in Root.Township, Alta.Environmental.Atmosphere.
Blends between atmosphere sets using placed ambience points: the closer point pair and progress between them decide the ambient colour and audio.
Constructors
| Member | What it is |
|---|
SpaceDefinedAtmosphere() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
Properties
| Member | What it is |
|---|
override IEnumerable<AmbienceSpacePoint> Points { get; } | The ambience points. |
Methods
| Member | What it is |
|---|
protected override void ExitArea() | On leaving the area, applies whichever set of the closest point pair the player was nearer. |
protected override void SendNewCloserPoint(AmbienceSpacePoint from, AmbienceSpacePoint to, float progress) | Blends ambient colour between the two sets and crossfades their ambience audio by progress. |