MyDungeon Documentation
![]() | MainMenu Class |
MainMenu is the class that handles the menu that allows the player to start a new game, load a saved game, and quit the game
Inheritance HierarchyNamespace: MyDungeon.UI.Menu
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
SyntaxC#
public class MainMenu : MonoBehaviour
The MainMenu type exposes the following members.
Constructors
Methods| Name | Description | |
|---|---|---|
![]() | LoadGame |
Called when the Load Game button is clicked
|
![]() | NewGame |
Called when the New Game button is clicked
|
![]() | Quit |
Called when the Quit Game button is clicked
|
![]() | Start |
Instantiates the menu prefab and sets up EventSystem selections
|
![]() | Update |
Places selection back on the menu if movement controls are pressed after losing menu focus
|
Fields| Name | Description | |
|---|---|---|
![]() | EventSystem | |
![]() | LastSelected | |
![]() | LoadGameScene |
Scene that is loaded when Load Game is clicked
|
![]() | MainMenuPrefab |
Prefab of the Main Menu
|
![]() | NewGameScene |
Scene that is loaded when New Game is clicked
|
Extension Methods| Name | Description | |
|---|---|---|
![]() | Invoke |
Invoke using a delegate
(Defined by MonoBehaviourExtensions.) |
See Also




