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