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
Syntaxprotected 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:
IEnumeratorIEnumerator for coroutine
See Also