C# Class CameraFade, Paths-of-The-Heart

Inheritance: MonoBehaviour
Mostrar archivo Open project: OneGameAMonth/Paths-of-The-Heart Class Usage Examples

Public Properties

Property Type Description
m_BackgroundStyle GUIStyle
m_CurrentScreenOverlayColor Color
m_DeltaColor Color
m_FadeDelay float
m_FadeGUIDepth int
m_FadeTexture Texture2D
m_OnFadeFinish Action
m_TargetScreenOverlayColor Color

Private Properties

Property Type Description
SetScreenOverlayColor void

Public Methods

Method Description
Awake ( ) : void
Die ( ) : void
OnApplicationQuit ( ) : void
OnGUI ( ) : void
StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration ) : void

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent.

StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration, float fadeDelay ) : void

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent, after a delay.

StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration, float fadeDelay, Action OnFadeFinish ) : void

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent, after a delay, with Action OnFadeFinish.

init ( ) : void

Private Methods

Method Description
SetScreenOverlayColor ( Color newScreenOverlayColor ) : void

Sets the color of the screen overlay instantly. Useful to start a fade.

Method Details

Awake() public method

public Awake ( ) : void
return void

Die() public method

public Die ( ) : void
return void

OnApplicationQuit() public method

public OnApplicationQuit ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

StartAlphaFade() public static method

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent.
public static StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration ) : void
newScreenOverlayColor Color /// Target screen overlay Color. ///
isFadeIn bool
fadeDuration float /// Fade duration. ///
return void

StartAlphaFade() public static method

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent, after a delay.
public static StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration, float fadeDelay ) : void
newScreenOverlayColor Color /// New screen overlay color. ///
isFadeIn bool
fadeDuration float /// Fade duration. ///
fadeDelay float /// Fade delay. ///
return void

StartAlphaFade() public static method

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent, after a delay, with Action OnFadeFinish.
public static StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration, float fadeDelay, Action OnFadeFinish ) : void
newScreenOverlayColor Color /// New screen overlay color. ///
isFadeIn bool
fadeDuration float /// Fade duration. ///
fadeDelay float /// Fade delay. ///
OnFadeFinish Action /// On fade finish, doWork(). ///
return void

init() public method

public init ( ) : void
return void

Property Details

m_BackgroundStyle public_oe property

public GUIStyle m_BackgroundStyle
return GUIStyle

m_CurrentScreenOverlayColor public_oe property

public Color m_CurrentScreenOverlayColor
return Color

m_DeltaColor public_oe property

public Color m_DeltaColor
return Color

m_FadeDelay public_oe property

public float m_FadeDelay
return float

m_FadeGUIDepth public_oe property

public int m_FadeGUIDepth
return int

m_FadeTexture public_oe property

public Texture2D m_FadeTexture
return Texture2D

m_OnFadeFinish public_oe property

public Action m_OnFadeFinish
return Action

m_TargetScreenOverlayColor public_oe property

public Color m_TargetScreenOverlayColor
return Color