C# Class MenuMaster

Inheritance: MonoBehaviour
Show file Open project: DRMold/HungryHungryTetris Class Usage Examples

Public Properties

Property Type Description
countDownText Text
length float
mainPanel GameObject
musicVolume int
timerOptionIndex int

Public Methods

Method Description
DecreaseTimer ( ) : void
IncreaseTimer ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
Start ( ) : void
StartListening ( string eventName, UnityAction listener ) : void
StopListening ( string eventName, UnityAction listener ) : void
TriggerEvent ( string eventName ) : void
addPlayerReady ( ) : void
decreaseMusicVolume ( ) : void
fastDecreaseMusicVolume ( ) : void
fastIncreaseMusicVolume ( ) : void
increaseMusicVolume ( ) : void
initialize ( ) : void
removePlayerReady ( ) : void
showMainMenu ( ) : void
showOptionsMenu ( ) : void
showReadyMenu ( ) : void

Private Methods

Method Description
FadeInPanel ( GameObject myPanel ) : IEnumerator
FadeOutPanel ( GameObject myPanel ) : IEnumerator

Method Details

DecreaseTimer() public method

public DecreaseTimer ( ) : void
return void

IncreaseTimer() public method

public IncreaseTimer ( ) : void
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

Start() public method

public Start ( ) : void
return void

StartListening() public static method

public static StartListening ( string eventName, UnityAction listener ) : void
eventName string
listener UnityAction
return void

StopListening() public static method

public static StopListening ( string eventName, UnityAction listener ) : void
eventName string
listener UnityAction
return void

TriggerEvent() public static method

public static TriggerEvent ( string eventName ) : void
eventName string
return void

addPlayerReady() public method

public addPlayerReady ( ) : void
return void

decreaseMusicVolume() public method

public decreaseMusicVolume ( ) : void
return void

fastDecreaseMusicVolume() public method

public fastDecreaseMusicVolume ( ) : void
return void

fastIncreaseMusicVolume() public method

public fastIncreaseMusicVolume ( ) : void
return void

increaseMusicVolume() public method

public increaseMusicVolume ( ) : void
return void

initialize() public method

public initialize ( ) : void
return void

removePlayerReady() public method

public removePlayerReady ( ) : void
return void

showMainMenu() public method

public showMainMenu ( ) : void
return void

showOptionsMenu() public method

public showOptionsMenu ( ) : void
return void

showReadyMenu() public method

public showReadyMenu ( ) : void
return void

Property Details

countDownText public property

public Text countDownText
return Text

length public static property

public static float length
return float

mainPanel public property

public GameObject mainPanel
return GameObject

musicVolume public static property

public static int musicVolume
return int

timerOptionIndex public static property

public static int timerOptionIndex
return int