Infinite Runner Engine v1.9
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MoreMountains.InfiniteRunnerEngine.GUIManager Class Reference

Handles all GUI effects and changes More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.GUIManager:
MoreMountains.Tools.MMSingleton< GUIManager > MoreMountains.Tools.MMEventListener< MMGameEvent > MoreMountains.InfiniteRunnerEngine.SkyTheoryGUIManager

Public Member Functions

virtual void Initialize ()
 Initialization More...
 
virtual void InitializeLives ()
 Initializes the lives display. More...
 
virtual void OnGameStart ()
 Override this to have code executed on the GameStart event More...
 
virtual void SetPause (bool state)
 Sets the pause. More...
 
virtual void SetCountdownActive (bool state)
 Sets the countdown active. More...
 
virtual void SetCountdownText (string newText)
 Sets the countdown text. More...
 
virtual void SetGameOverScreen (bool state)
 Sets the game over screen on or off. More...
 
virtual void RefreshPoints ()
 Sets the text to the game manager's points. More...
 
virtual void SetLevelName (string name)
 Sets the level name in the HUD More...
 
virtual void FaderOn (bool state, float duration)
 Fades the fader in or out depending on the state More...
 
virtual void FaderTo (Color newColor, float duration)
 Fades the fader to the alpha set as parameter More...
 
virtual void OnMMEvent (MMGameEvent gameEvent)
 
- Public Member Functions inherited from MoreMountains.Tools.MMEventListener< MMGameEvent >
void OnMMEvent (T eventType)
 

Public Attributes

GameObject PauseScreen
 the pause screen game object More...
 
GameObject GameOverScreen
 the game over screen game object More...
 
GameObject HeartsContainer
 the object that will contain lives hearts More...
 
Text PointsText
 the points counter More...
 
Text LevelText
 the level display More...
 
Text CountdownText
 the countdown at the start of a level More...
 
Image Fader
 the screen used for all fades More...
 
GameObject GUIHeartEmpty
 the gameobject to use to represent lost lives More...
 
GameObject GUIHeartFull
 the gameobject to use to represent lost lives More...
 

Protected Member Functions

virtual void OnEnable ()
 
virtual void OnDisable ()
 
- Protected Member Functions inherited from MoreMountains.Tools.MMSingleton< GUIManager >
virtual void Awake ()
 On awake, we initialize our instance. Make sure to call base.Awake() in override if you need awake. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MoreMountains.Tools.MMSingleton< GUIManager >
static T TryGetInstance ()
 
- Static Protected Attributes inherited from MoreMountains.Tools.MMSingleton< GUIManager >
static T _instance
 
- Properties inherited from MoreMountains.Tools.MMSingleton< GUIManager >
static bool HasInstance [get]
 
static T Current [get]
 
static T Instance [get]
 Singleton design pattern More...
 

Detailed Description

Handles all GUI effects and changes

Member Function Documentation

◆ FaderOn()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.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.InfiniteRunnerEngine.GUIManager.FaderTo ( Color  newColor,
float  duration 
)
virtual

Fades the fader to the alpha set as parameter

Parameters
newColorThe color to fade to.
durationDuration.

◆ Initialize()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.Initialize ( )
virtual

◆ InitializeLives()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.InitializeLives ( )
virtual

Initializes the lives display.

◆ OnDisable()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.OnDisable ( )
protectedvirtual

◆ OnEnable()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.OnEnable ( )
protectedvirtual

◆ OnGameStart()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.OnGameStart ( )
virtual

Override this to have code executed on the GameStart event

Reimplemented in MoreMountains.InfiniteRunnerEngine.SkyTheoryGUIManager.

◆ OnMMEvent()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.OnMMEvent ( MMGameEvent  gameEvent)
virtual

◆ RefreshPoints()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.RefreshPoints ( )
virtual

Sets the text to the game manager's points.

Reimplemented in MoreMountains.InfiniteRunnerEngine.SkyTheoryGUIManager.

◆ SetCountdownActive()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.SetCountdownActive ( bool  state)
virtual

Sets the countdown active.

Parameters
stateIf set to true state.

◆ SetCountdownText()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.SetCountdownText ( string  newText)
virtual

Sets the countdown text.

Parameters
valuethe new countdown text.

◆ SetGameOverScreen()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.SetGameOverScreen ( bool  state)
virtual

Sets the game over screen on or off.

Parameters
stateIf set to true, sets the game over screen on.

Reimplemented in MoreMountains.InfiniteRunnerEngine.SkyTheoryGUIManager.

◆ SetLevelName()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.SetLevelName ( string  name)
virtual

Sets the level name in the HUD

◆ SetPause()

virtual void MoreMountains.InfiniteRunnerEngine.GUIManager.SetPause ( bool  state)
virtual

Sets the pause.

Parameters
stateIf set to true, sets the pause.

Reimplemented in MoreMountains.InfiniteRunnerEngine.SkyTheoryGUIManager.

Member Data Documentation

◆ CountdownText

Text MoreMountains.InfiniteRunnerEngine.GUIManager.CountdownText

the countdown at the start of a level

◆ Fader

Image MoreMountains.InfiniteRunnerEngine.GUIManager.Fader

the screen used for all fades

◆ GameOverScreen

GameObject MoreMountains.InfiniteRunnerEngine.GUIManager.GameOverScreen

the game over screen game object

◆ GUIHeartEmpty

GameObject MoreMountains.InfiniteRunnerEngine.GUIManager.GUIHeartEmpty

the gameobject to use to represent lost lives

◆ GUIHeartFull

GameObject MoreMountains.InfiniteRunnerEngine.GUIManager.GUIHeartFull

the gameobject to use to represent lost lives

◆ HeartsContainer

GameObject MoreMountains.InfiniteRunnerEngine.GUIManager.HeartsContainer

the object that will contain lives hearts

◆ LevelText

Text MoreMountains.InfiniteRunnerEngine.GUIManager.LevelText

the level display

◆ PauseScreen

GameObject MoreMountains.InfiniteRunnerEngine.GUIManager.PauseScreen

the pause screen game object

◆ PointsText

Text MoreMountains.InfiniteRunnerEngine.GUIManager.PointsText

the points counter


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