Click or drag to resize

IntensityDrivenBehaviourFadeOut Method

Gradually reduces the object to the off state

Namespace:  WeatherSystem.IntensityComponents
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected IEnumerator FadeOut(
	float time,
	Action<float> fadeCallback
)

Parameters

time
Type: SystemSingle
The time that should be taken to reach fully 'off'
fadeCallback
Type: SystemActionSingle
The callback which to pass the extent which to turn off, over multiple frames, which will do the actual deactivation

Return Value

Type: IEnumerator
IEnumerator for coroutine
See Also