This commit is contained in:
vis2k 2021-03-13 13:11:13 +08:00
parent 4ce55f585c
commit a5224ecd10

View File

@ -764,14 +764,13 @@ internal static bool InvokeUnSpawnHandler(Guid assetId, GameObject obj)
// the players object for example.
public static bool Ready(NetworkConnection conn)
{
// Debug.Log("NetworkClient.Ready() called with connection [" + conn + "]");
if (ready)
{
Debug.LogError("NetworkClient is already ready. It shouldn't be called twice.");
return false;
}
// Debug.Log("NetworkClient.Ready() called with connection [" + conn + "]");
if (conn != null)
{
// Set these before sending the ReadyMessage, otherwise host client