Version: 2018.1
protected void OnServerReconnectPlayer (Networking.NetworkConnection newConnection, GameObject oldPlayer, int oldConnectionId, short playerControllerId);
protected void OnServerReconnectPlayer (Networking.NetworkConnection newConnection, GameObject oldPlayer, int oldConnectionId, short playerControllerId, Networking.NetworkReader extraMessageReader);

パラメーター

newConnection新しいクライアントの接続
oldPlayerクライアントに紐づくプレイヤーオブジェクト
oldConnectionId旧ホスト上のクライアントの connectionId
playerControllerId再接続するプレイヤーの playerControllerId
extraMessageReader追加メッセージデータ (オプション)

説明

旧ホストのクライアントが新しいホストに再接続するときに、新しいホスト上で呼び出される仮想関数

この関数の基本クラスバージョンは ReconnectPlayerForConnection() を呼び出し、新しいクライアントを接続します。

ReconnectPlayerForConnection はこの関数の中で呼び出す必要はありません。それは、非同期的に行われます。