Свойство | Type | Description | |
---|---|---|---|
uJoin | Button | ||
uMessageField | InputField, | ||
uOpenRoom | Button | ||
uOutput | MessageList, | ||
uRoomName | InputField, | ||
uSend | Button | ||
uShutdown | Button |
Méthode | Description | |
---|---|---|
Exit ( ) : void |
Called if the Exit button is pressed. Quits the scene and shuts everything down.
|
|
Join ( ) : void |
Join button pressed. Tries to join a room.
|
|
OpenRoom ( ) : void |
Open room button pressed. Opens a room / starts a server
|
|
SendButtonPressed ( ) : void |
This is called if the send button
|
|
Shutdown ( ) : void |
Shutdown button pressed. Shuts the network down.
|
Méthode | Description | |
---|---|---|
Append ( string text ) : void |
Adds a new message to the message view
|
|
FixedUpdate ( ) : void | ||
HandleIncommingMessage ( NetworkEvent &evt ) : void | ||
HandleNetwork ( ) : void | ||
OnGUI ( ) : void | ||
SendString ( string msg, bool reliable = true ) : void |
Sends a string as UTF8 byte array to all connections
|
|
SetGuiState ( bool isDisconnected ) : void |
Changes the gui depending on if the user is connected or disconnected
|
|
Start ( ) : void |