Class OptionsDisplay
Handles showing/hiding an Options window, also handles user-input on the buttons of the Options window.
Namespace: MouseDance.Demo
Assembly: MouseDance.Demo.dll
Syntax
public class OptionsDisplay : MonoBehaviour
Methods
OnPressedBackToMenu()
Called when user presses the "Back to Menu" button inside the Options window.
Declaration
public void OnPressedBackToMenu()
OnPressedClose()
Called when user presses the X close button. This will unpause the game while also closing the Options Window.
Declaration
public void OnPressedClose()
OnPressedGraphicsHighButton(Boolean)
Declaration
public void OnPressedGraphicsHighButton(bool selected)
Parameters
Type | Name | Description |
---|---|---|
Boolean | selected |
OnPressedGraphicsLowButton(Boolean)
Declaration
public void OnPressedGraphicsLowButton(bool selected)
Parameters
Type | Name | Description |
---|---|---|
Boolean | selected |
OnPressedGraphicsMidButton(Boolean)
Declaration
public void OnPressedGraphicsMidButton(bool selected)
Parameters
Type | Name | Description |
---|---|---|
Boolean | selected |
OnPressedRestart()
Called when user presses the Restart button inside the Options window.
Declaration
public void OnPressedRestart()
OnPressedStart()
Called when user presses the Start button.
Declaration
public void OnPressedStart()
SetQualityLevelFromSavedSetting()
Declaration
public static void SetQualityLevelFromSavedSetting()
Show()
Called when user presses the pause button in the UI. This effectively pauses the game while also showing the Options Window.
Declaration
public void Show()