MainMenu Class

MyDungeon

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 Hierarchy
SystemObject  Object
    Component
      Behaviour
        MonoBehaviour
          MyDungeon.UI.MenuMainMenu

Namespace:  MyDungeon.UI.Menu
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class MainMenu : MonoBehaviour

The MainMenu type exposes the following members.

Constructors
  NameDescription
Public methodMainMenu
Initializes a new instance of the MainMenu class
Top
Methods
  NameDescription
Public methodLoadGame
Called when the Load Game button is clicked
Public methodNewGame
Called when the New Game button is clicked
Public methodQuit
Called when the Quit Game button is clicked
Protected methodStart
Instantiates the menu prefab and sets up EventSystem selections
Protected methodUpdate
Places selection back on the menu if movement controls are pressed after losing menu focus
Top
Fields
  NameDescription
Protected fieldEventSystem
Protected fieldLastSelected
Public fieldLoadGameScene
Scene that is loaded when Load Game is clicked
Public fieldMainMenuPrefab
Prefab of the Main Menu
Public fieldNewGameScene
Scene that is loaded when New Game is clicked
Top
Extension Methods
  NameDescription
Public Extension MethodInvoke
Invoke using a delegate
(Defined by MonoBehaviourExtensions.)
Top
See Also