This component allows the definition of a level that can then be accessed and loaded. Used mostly in the level map scene.
More...
|
| virtual void | GoToLevel () |
| | Loads the level specified in the inspector.
|
| virtual void | RestartLevel () |
| | Restarts the current level, without reloading the whole scene.
|
| virtual void | ReloadLevel () |
| | Reloads the current level.
|
This component allows the definition of a level that can then be accessed and loaded. Used mostly in the level map scene.
◆ GoToLevel()
| virtual void MoreMountains.TopDownEngine.LevelSelector.GoToLevel |
( |
| ) |
|
|
virtual |
Loads the level specified in the inspector.
◆ LoadScene()
| virtual void MoreMountains.TopDownEngine.LevelSelector.LoadScene |
( |
string | newSceneName | ) |
|
|
protectedvirtual |
Loads a new scene, either via the LevelManager or not.
- Parameters
-
◆ ReloadLevel()
| virtual void MoreMountains.TopDownEngine.LevelSelector.ReloadLevel |
( |
| ) |
|
|
virtual |
Reloads the current level.
◆ RestartLevel()
| virtual void MoreMountains.TopDownEngine.LevelSelector.RestartLevel |
( |
| ) |
|
|
virtual |
Restarts the current level, without reloading the whole scene.
◆ DestroyPersistentCharacter
| bool MoreMountains.TopDownEngine.LevelSelector.DestroyPersistentCharacter = false |
if this is true, any persistent character will be destroyed when loading the new level
◆ DoNotUseLevelManager
| bool MoreMountains.TopDownEngine.LevelSelector.DoNotUseLevelManager = false |
if this is true, GoToLevel will ignore the LevelManager and do a direct call
◆ LevelName
| string MoreMountains.TopDownEngine.LevelSelector.LevelName |
the exact name of the target level
The documentation for this class was generated from the following file:
- H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/GUI/LevelSelector.cs