C# Class GameMaster

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

Public Properties

Property Type Description
fadeImg Image
fadeIn bool
transitionTime float

Public Methods

Method Description
Awake ( ) : void
ExitGame ( ) : void
GetTime ( ) : float
InitTimer ( ) : void
LoadScene ( string level ) : void
OnLevelWasLoaded ( int level ) : void
SetTimer ( ) : void
Start ( ) : void
StartListening ( string eventName, UnityAction listener ) : void
StopListening ( string eventName, UnityAction listener ) : void
TriggerEvent ( string eventName ) : void
Update ( ) : void
initialize ( ) : void
setNumPlayers ( int num ) : void
showMenu ( ) : void
startGame ( ) : void

Private Methods

Method Description
EndScene ( string nextScene ) : IEnumerator
FadeToBlack ( ) : void
FadeToClear ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
StartScene ( ) : IEnumerator
musicVolumeChange ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

ExitGame() public method

public ExitGame ( ) : void
return void

GetTime() public method

public GetTime ( ) : float
return float

InitTimer() public method

public InitTimer ( ) : void
return void

LoadScene() public method

public LoadScene ( string level ) : void
level string
return void

OnLevelWasLoaded() public method

public OnLevelWasLoaded ( int level ) : void
level int
return void

SetTimer() public method

public SetTimer ( ) : 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

Update() public method

public Update ( ) : void
return void

initialize() public method

public initialize ( ) : void
return void

setNumPlayers() public method

public setNumPlayers ( int num ) : void
num int
return void

showMenu() public method

public showMenu ( ) : void
return void

startGame() public method

public startGame ( ) : void
return void

Property Details

fadeImg public property

public Image fadeImg
return Image

fadeIn public property

public bool fadeIn
return bool

transitionTime public property

public float transitionTime
return float