Table of Contents

Class ClientFogManager

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Manages fog transitions triggered by region changes. Extracted from Client.cs.

public class ClientFogManager
Inheritance
ClientFogManager
Inherited Members

Remarks

Region fog is the base the weather is laid over, so this writes Base rather than UnityEngine.RenderSettings; the composer writes the scene's fog.

Constructors

ClientFogManager(MonoBehaviour)

Creates a ClientFogManager that uses the given MonoBehaviour for coroutines.

public ClientFogManager(MonoBehaviour owner)

Parameters

owner MonoBehaviour

The MonoBehaviour used to start/stop fog lerp coroutines.

Fields

MinimumSeconds

The shortest a region's fog takes to arrive or leave, in seconds. A region authored with a change rate of nothing still eases over this: fog that cuts in or out between one frame and the next reads as a fault, not as weather.

public const float MinimumSeconds = 1.5

Field Value

float

Methods

Initialize()

Subscribes to ChangeFogAction events. Call during client initialization.

public void Initialize()

Shutdown()

Unsubscribes from ChangeFogAction and stops active lerp. Call during teardown.

public void Shutdown()

Stop()

Stops the current fog lerp coroutine if one is active.

public void Stop()