C# Class JoinGameList, goalBall

Keeps track of all the games available to join and allows users to join them
Inheritance: MonoBehaviour
Show file 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 property

public string CancelButton
return string

HorizontalInput public property

public string HorizontalInput
return string

Keys public property

public List Keys
return List

SubmitButton public property

public string SubmitButton
return string

audioClips public property

public List audioClips
return List

gameName public property

public Text gameName
return Text

gamePanel public property

public GameObject gamePanel
return GameObject

games public property

public List games
return List

networkManager public property

public NetworkManager_Custom, networkManager
return NetworkManager_Custom,

playlist public property

public List playlist
return List

serverLink public property

public ServerLink, serverLink
return ServerLink,