MagicMenu Class |
Namespace: RavingBots.MagicGestures.UI
public class MagicMenu : MonoSingleton<MagicMenu>
The MagicMenu type exposes the following members.
Name | Description | |
---|---|---|
CurrentView |
The currently shown view.
| |
Shown | if the menu is shown.
| |
SpellBookView |
The instance of the spellbook view.
| |
SpellEditView |
The instance of the spell edit view.
| |
SpellTrainView |
The instance of the gesture training view.
| |
WelcomeView |
The instance of the welcome view.
|
Name | Description | |
---|---|---|
AlignTo |
Position the menu based on the camera transform.
| |
Awake |
Find the children components.
(Overrides MonoSingletonTAwake.) | |
OnGesture |
Called when the user performs a gesture.
| |
OnMenuButton |
Called when the user presses the menu button.
| |
SetCurrentView |
Called when the active view changes.
| |
Start |
Register the event handlers.
|
Name | Description | |
---|---|---|
_audioSource |
The menu's audio source.
| |
_currentView |
The currently shown view.
| |
DistanceToCamera |
The distance from the camera to the UI.
| |
HideSound |
The sound played when the menu is hidden.
| |
ShowSound |
The sound played when the menu is shown.
|