Beamable SDK
Public Member Functions | Public Attributes | List of all members
MatchMakingUI Class Reference
Inheritance diagram for MatchMakingUI:
Inheritance graph
[legend]
Collaboration diagram for MatchMakingUI:
Collaboration graph
[legend]

Public Member Functions

void Awake ()
 
void OnMatchMakingUpdate (MatchmakingResponse response)
 
void OnCancel ()
 
void OnInit ()
 Once players have joined the game session, prompt them to hit the ready button, move timer to a visible location, and set the matchmaking display to false. More...
 
void SetPlayerReady (bool activeState, long dbid)
 Sets the correct player to a ready state. More...
 
void OnGameStart ()
 Close the matchmaking screen, and start the game More...
 
void UpdatePlacards (int player, long dbid)
 Verifies that the playercard to update, matches the currently affected player, and then sets the player's position based on what player number they are 1-4. More...
 
Vector2[] SetPlayerPosition (int player)
 Sets vectors to place player positions with respect to which player they are in the game. More...
 

Public Attributes

TextMeshProUGUI queueTimeRemaining
 
Image loadingBarForward
 
Image loadingBarBackward
 
Sprite loadingBarEnding
 
List< MatchmakingPlacardplayerPlacards
 
List< GameObject > gameParts
 
GameObject[] readyButtons
 
CanvasGroup UIbackground
 
List< long > currentPlayers
 
GameObject startText
 
GameObject readyButton
 
GameObject readyTimer
 
GameObject loadingGameObject
 

Member Function Documentation

◆ OnGameStart()

void MatchMakingUI.OnGameStart ( )
inline

Close the matchmaking screen, and start the game

◆ OnInit()

void MatchMakingUI.OnInit ( )
inline

Once players have joined the game session, prompt them to hit the ready button, move timer to a visible location, and set the matchmaking display to false.

◆ SetPlayerPosition()

Vector2 [] MatchMakingUI.SetPlayerPosition ( int  player)
inline

Sets vectors to place player positions with respect to which player they are in the game.

Parameters
playerPlayer number in the game
Returns

◆ SetPlayerReady()

void MatchMakingUI.SetPlayerReady ( bool  activeState,
long  dbid 
)
inline

Sets the correct player to a ready state.

Parameters
activeStateWhether play is ready or not
dbidplayer's state to be changed

◆ UpdatePlacards()

void MatchMakingUI.UpdatePlacards ( int  player,
long  dbid 
)
inline

Verifies that the playercard to update, matches the currently affected player, and then sets the player's position based on what player number they are 1-4.

Parameters
player
dbid

The documentation for this class was generated from the following file: