void UpdatePendingCommit(NetworkInfo networkInfo, int authorityIndex, int fromClientIndex, int toClientIndex) { if (networkInfo.IsPendingCommit() && authorityIndex != toClientIndex + 1) { #if DEBUG_AUTHORITY Debug.Log("client " + toClientIndex + " sees update for cube " + networkInfo.GetCubeId() + " from client " + fromClientIndex + " with authority index (" + authorityIndex + ") and clears pending commit flag"); #endif // #if DEBUG_AUTHORITY networkInfo.ClearPendingCommit(); } }