Property | Type | Description | |
---|---|---|---|
CancelButton | string | ||
HorizontalButton | string | ||
Instructions | |||
SubmitButton | string | ||
VerticalButton | string | ||
downSound | |||
leftSound | |||
rightSound | |||
shouldPlay | bool | ||
upSound |
Method | Description | |
---|---|---|
Down ( ) : void |
Down menu option is selected (only called if menu is missing Down function)
|
|
Left ( ) : void |
Left menu option is selected (only called if menu is missing Left function)
|
|
PlayInstructionsAfterDelay ( ) : void | ||
Right ( ) : void |
Right menu option is selected (only called if menu is missing Right function)
|
|
StopAudio ( ) : void |
Allow specific menus to stop audio when necessary
|
|
Up ( ) : void |
Up menu option is selected (only called if menu is missing Up function)
|
|
directionalMenuLogic ( LeftFunc left, RightFunc right, UpFunc up, DownFunc down ) : void |
Checks for user button presses and calls respective function
|
Method | Description | |
---|---|---|
Start ( ) : void |
Get the AudioSource for the menu when the scene starts
|
|
Update ( ) : void |
Every frame, check for user input on menu
|
|
changeBumpers ( string dir ) : void | ||
playDirectionalSound ( |
Plays clip when direction is pressed
|
protected PlayInstructionsAfterDelay ( ) : void | ||
return | void |
protected directionalMenuLogic ( LeftFunc left, RightFunc right, UpFunc up, DownFunc down ) : void | ||
left | LeftFunc | Defined Left function |
right | RightFunc | Defined Right function |
up | UpFunc | Defined Up function |
down | DownFunc | Defined Down function |
return | void |
public AudioClip,UnityEngine Instructions | ||
return |