Corgi Engine  v8.8
MoreMountains.CorgiEngine.LevelSelector Class Reference

This component allows the definition of a level that can then be accessed and loaded. Used mostly in the level map scene. More...

Inheritance diagram for MoreMountains.CorgiEngine.LevelSelector:
MoreMountains.CorgiEngine.CorgiMonoBehaviour

Public Member Functions

virtual void GoToLevel ()
 Loads the level specified in the inspector More...
 
virtual void RestartLevel ()
 Restarts the current level More...
 

Public Attributes

string LevelName
 the exact name of the target level More...
 
bool Fade = true
 whether or not changing level should trigger a fade More...
 
bool Save = true
 whether or not changing level should trigger a save event More...
 

Detailed Description

This component allows the definition of a level that can then be accessed and loaded. Used mostly in the level map scene.

Member Function Documentation

◆ GoToLevel()

virtual void MoreMountains.CorgiEngine.LevelSelector.GoToLevel ( )
virtual

Loads the level specified in the inspector

◆ RestartLevel()

virtual void MoreMountains.CorgiEngine.LevelSelector.RestartLevel ( )
virtual

Restarts the current level

Member Data Documentation

◆ Fade

bool MoreMountains.CorgiEngine.LevelSelector.Fade = true

whether or not changing level should trigger a fade

◆ LevelName

string MoreMountains.CorgiEngine.LevelSelector.LevelName

the exact name of the target level

◆ Save

bool MoreMountains.CorgiEngine.LevelSelector.Save = true

whether or not changing level should trigger a save event


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