Свойство | Тип | Описание | |
---|---|---|---|
GameName | string | ||
LocalMode | bool | ||
ServerName | string |
Метод | Описание | |
---|---|---|
Awake ( ) : void | ||
CloseServer ( ) : void | ||
ConnectToServer ( ) : void | ||
CreateServer ( ) : void | ||
MapPort ( ) : void | ||
OnApplicationQuit ( ) : void | ||
OnConnectedToServer ( ) : void | ||
OnDisconnectedFromServer ( NetworkDisconnection info ) : void | ||
OnFailedToConnect ( NetworkConnectionError error ) : void | ||
OnFailedToConnectToMasterServer ( NetworkConnectionError info ) : void | ||
OnPlayerConnected ( NetworkPlayer player ) : void | ||
OnPlayerDisconnected ( NetworkPlayer player ) : void | ||
Start ( ) : void | ||
Update ( ) : void |
Метод | Описание | |
---|---|---|
GetIP ( ) : string |
public OnDisconnectedFromServer ( NetworkDisconnection info ) : void | ||
info | NetworkDisconnection | |
Результат | void |
public OnFailedToConnect ( NetworkConnectionError error ) : void | ||
error | NetworkConnectionError | |
Результат | void |
public OnFailedToConnectToMasterServer ( NetworkConnectionError info ) : void | ||
info | NetworkConnectionError | |
Результат | void |
public OnPlayerConnected ( NetworkPlayer player ) : void | ||
player | NetworkPlayer | |
Результат | void |
public OnPlayerDisconnected ( NetworkPlayer player ) : void | ||
player | NetworkPlayer | |
Результат | void |