C# Class Nez.FadeTransition

fades to fadeToColor then fades to the new Scene
Inheritance: SceneTransition
Show file Open project: prime31/Nez

Public Properties

Property Type Description
delayBeforeFadeInDuration float
fadeEaseType EaseType
fadeInDuration float
fadeOutDuration float
fadeToColor Color

Public Methods

Method Description
FadeTransition ( ) : System
FadeTransition ( Func sceneLoadAction ) : System
onBeginTransition ( ) : IEnumerator
render ( Graphics graphics ) : void

Method Details

FadeTransition() public method

public FadeTransition ( ) : System
return System

FadeTransition() public method

public FadeTransition ( Func sceneLoadAction ) : System
sceneLoadAction Func
return System

onBeginTransition() public method

public onBeginTransition ( ) : IEnumerator
return IEnumerator

render() public method

public render ( Graphics graphics ) : void
graphics Graphics
return void

Property Details

delayBeforeFadeInDuration public property

delay to start fading out
public float delayBeforeFadeInDuration
return float

fadeEaseType public property

ease equation to use for the fade
public EaseType fadeEaseType
return EaseType

fadeInDuration public property

duration to fade from fadeToColor to the new Scene
public float fadeInDuration
return float

fadeOutDuration public property

duration to fade to fadeToColor
public float fadeOutDuration
return float

fadeToColor public property

the color we will fade to/from
public Color fadeToColor
return Color