Version: 2017.1
public static bool ReplacePlayerForConnection (Networking.NetworkConnection conn, GameObject player, short playerControllerId);

パラメーター

conn プレイヤーを追加する接続
player プレイヤーのプレイヤーオブジェクトが生成されます。
playerControllerId クライアントによって指定されたプレイヤーコントローラーの ID 番号

戻り値

bool プレイヤーが交代した場合、True を返します。

説明

これは別のプレイヤーオブジェクトで接続しているプレイヤーオブジェクトを置き換えます。古いプレイヤーオブジェクトは破棄されません。

If a connection already has a player object, this can be used to replace that object with a different player object. This does NOT change the ready state of the connection, so it can safely be used while changing scenes.