C# Class Game.SceneLoader

For loading scenes and fading
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: BrainProject/UnityTemp

Méthodes publiques

Свойство Type Description
doFade bool

Méthodes publiques

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

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

public FadeIn ( ) : void
Résultat void

LoadScene() public méthode

public LoadScene ( int levelIndex, bool doFadeInOut = true ) : void
levelIndex int
doFadeInOut bool
Résultat void

LoadScene() public méthode

public LoadScene ( string levelName, bool doFadeInOut = true ) : void
levelName string
doFadeInOut bool
Résultat void

Start() public méthode

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

Property Details

doFade public_oe property

public bool doFade
Résultat bool