C# Class Game.SceneLoader

For loading scenes and fading
Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: BrainProject/UnityTemp

Public Properties

Property Type Description
doFade bool

Public Methods

Method Description
FadeIn ( ) : void
LoadScene ( int levelIndex, bool doFadeInOut = true ) : void
LoadScene ( string levelName, bool doFadeInOut = true ) : void
Start ( ) : void

Set it up, mainly UI panel used for fading

Private Methods

Method Description
FadeInCoroutine ( ) : IEnumerator
LoadByIndexWithFadeOut ( int levelIndex ) : IEnumerator

Coroutine for fading out and loading level by index

LoadWithFadeOut ( string levelName ) : IEnumerator

Coroutine for fading out and loading level

Method Details

FadeIn() public method

public FadeIn ( ) : void
return void

LoadScene() public method

public LoadScene ( int levelIndex, bool doFadeInOut = true ) : void
levelIndex int
doFadeInOut bool
return void

LoadScene() public method

public LoadScene ( string levelName, bool doFadeInOut = true ) : void
levelName string
doFadeInOut bool
return void

Start() public method

Set it up, mainly UI panel used for fading
public Start ( ) : void
return void

Property Details

doFade public_oe property

public bool doFade
return bool