Highroad Engine v1.3
Public Member Functions | Public Attributes | Static Protected Attributes | Properties | List of all members
MoreMountains.HighroadEngine.FaderManager Class Reference

Handles all GUI effects and changes More...

Inheritance diagram for MoreMountains.HighroadEngine.FaderManager:

Public Member Functions

void Awake ()
 
virtual void FaderOn (bool state, float duration)
 Fades the fader in or out depending on the state More...
 
virtual void FaderTo (float newOpacity, float duration)
 Fades the fader to the alpha set as parameter More...
 

Public Attributes

CanvasGroup Fader
 the screen used for all fades More...
 

Static Protected Attributes

static FaderManager _instance
 

Properties

static FaderManager Instance [get]
 singleton pattern More...
 

Detailed Description

Handles all GUI effects and changes

Member Function Documentation

◆ Awake()

void MoreMountains.HighroadEngine.FaderManager.Awake ( )

◆ FaderOn()

virtual void MoreMountains.HighroadEngine.FaderManager.FaderOn ( bool  state,
float  duration 
)
virtual

Fades the fader in or out depending on the state

Parameters
stateIf set to true fades the fader in, otherwise out if false.

◆ FaderTo()

virtual void MoreMountains.HighroadEngine.FaderManager.FaderTo ( float  newOpacity,
float  duration 
)
virtual

Fades the fader to the alpha set as parameter

Parameters
newColorThe color to fade to.
durationDuration.

Member Data Documentation

◆ _instance

FaderManager MoreMountains.HighroadEngine.FaderManager._instance
staticprotected

◆ Fader

CanvasGroup MoreMountains.HighroadEngine.FaderManager.Fader

the screen used for all fades

Property Documentation

◆ Instance

FaderManager MoreMountains.HighroadEngine.FaderManager.Instance
staticget

singleton pattern


The documentation for this class was generated from the following file: