Skip to main content

SpaceAtmosphereTrigger

A class in Root.Township, Alta.Environmental.Atmosphere.

Trigger volume that switches the atmosphere to a set when anything enters it.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private AtmosphereManager managerThe atmosphere manager.
private AtmosphereSet usedSetAtmosphere set to apply.

Methods​

2 private and internal methods
MemberWhat it is
private void OnTriggerEnter(Collider other)Applies usedSet through the atmosphere manager. Fires for any collider.
private void Start()Caches AtmosphereManager.instance.