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

Inheritance: MonoBehaviour
Afficher le fichier Open project: OneGameAMonth/Paths-of-The-Heart Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description
SetScreenOverlayColor void

Méthodes publiques

Méthode 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

Méthode Description
SetScreenOverlayColor ( Color newScreenOverlayColor ) : void

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

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

Die() public méthode

public Die ( ) : void
Résultat void

OnApplicationQuit() public méthode

public OnApplicationQuit ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

StartAlphaFade() public static méthode

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. ///
Résultat void

StartAlphaFade() public static méthode

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. ///
Résultat void

StartAlphaFade() public static méthode

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(). ///
Résultat void

init() public méthode

public init ( ) : void
Résultat void

Property Details

m_BackgroundStyle public_oe property

public GUIStyle m_BackgroundStyle
Résultat GUIStyle

m_CurrentScreenOverlayColor public_oe property

public Color m_CurrentScreenOverlayColor
Résultat Color

m_DeltaColor public_oe property

public Color m_DeltaColor
Résultat Color

m_FadeDelay public_oe property

public float m_FadeDelay
Résultat float

m_FadeGUIDepth public_oe property

public int m_FadeGUIDepth
Résultat int

m_FadeTexture public_oe property

public Texture2D m_FadeTexture
Résultat Texture2D

m_OnFadeFinish public_oe property

public Action m_OnFadeFinish
Résultat Action

m_TargetScreenOverlayColor public_oe property

public Color m_TargetScreenOverlayColor
Résultat Color