|
Inventory Engine v4.2
|
This component lets you restart a scene by pressing a key. More...
Inherits MonoBehaviour.
Public Types | |
| enum | RestartModes { ActiveScene , SpecificScene } |
| the possible restart modes More... | |
Public Member Functions | |
| virtual void | RestartScene () |
| Restarts the scene based on the specified settings. | |
Public Attributes | |
| RestartModes | RestartMode = RestartModes.ActiveScene |
| the selected restart mode, either the currently active scene, or one by name | |
| string | SceneName |
| the name of the scene to load if we're in specific scene mode | |
| LoadSceneMode | LoadMode = LoadSceneMode.Single |
| the load mode | |
| KeyCode | RestarterKeyCode = KeyCode.Backspace |
| the key to press to restart manually | |
Protected Member Functions | |
| virtual void | Update () |
| On Update, looks for input. | |
| virtual void | HandleInput () |
| Looks for a key press of the specified key. | |
Protected Attributes | |
| string | _newSceneName |
This component lets you restart a scene by pressing a key.
|
protectedvirtual |
Looks for a key press of the specified key.
|
virtual |
Restarts the scene based on the specified settings.
|
protectedvirtual |
On Update, looks for input.
|
protected |
| LoadSceneMode MoreMountains.Tools.MMSceneRestarter.LoadMode = LoadSceneMode.Single |
the load mode
| KeyCode MoreMountains.Tools.MMSceneRestarter.RestarterKeyCode = KeyCode.Backspace |
the key to press to restart manually
| RestartModes MoreMountains.Tools.MMSceneRestarter.RestartMode = RestartModes.ActiveScene |
the selected restart mode, either the currently active scene, or one by name
| string MoreMountains.Tools.MMSceneRestarter.SceneName |
the name of the scene to load if we're in specific scene mode