C# Class JoinGameList, goalBall

Keeps track of all the games available to join and allows users to join them
Inheritance: MonoBehaviour
显示文件 Open project: DrexelGoalBall/goalBall

Public Properties

Property Type Description
CancelButton string
HorizontalInput string
Keys List
SubmitButton string
audioClips List
gameName Text
gamePanel GameObject
games List
networkManager NetworkManager_Custom,
playlist List
serverLink ServerLink,

Public Methods

Method Description
Start ( ) : void

Get the initial information and set up the audio clip dictionary

Update ( ) : void

Accept user input and play audio for as long as this object is displayed

Private Methods

Method Description
ClearGameList ( ) : void

Resets the list of all the games

DisplayArrows ( ) : void

Show/hide the arrows depending on number of games and current index

GetGameList ( ) : void

Retrieves available games from server

PlayAudio ( ) : void

Play the next audio if there is no other clips playing

ReadGameName ( ) : void

Adds the appropriate clips to the playlist to read the name of the game out loud

RefreshGameList ( ) : void

Updates the on-screen game list if there are games, hides the game list if not

ResetAudio ( ) : void

Stops the audio and clears the playlist

ResetUI ( ) : void

Reset the UI back to its original state

UpdateGameList ( object sender, EventArgs e ) : void

When the games list has been changed, update the local game list

UserInput ( ) : void

Check if the user has provided input and react accordingly

Method Details

Start() public method

Get the initial information and set up the audio clip dictionary
public Start ( ) : void
return void

Update() public method

Accept user input and play audio for as long as this object is displayed
public Update ( ) : void
return void

Property Details

CancelButton public_oe property

public string CancelButton
return string

HorizontalInput public_oe property

public string HorizontalInput
return string

Keys public_oe property

public List Keys
return List

SubmitButton public_oe property

public string SubmitButton
return string

audioClips public_oe property

public List audioClips
return List

gameName public_oe property

public Text gameName
return Text

gamePanel public_oe property

public GameObject gamePanel
return GameObject

games public_oe property

public List games
return List

networkManager public_oe property

public NetworkManager_Custom, networkManager
return NetworkManager_Custom,

playlist public_oe property

public List playlist
return List

serverLink public_oe property

public ServerLink, serverLink
return ServerLink,