浏览代码

CR fixes, added comments and removed queuing for quick join.

/main/staging/lobby_quick_join
当前提交
91106af8
共有 2 个文件被更改,包括 9 次插入10 次删除
  1. 10
      Assets/Scripts/Game/GameManager.cs
  2. 9
      Assets/Scripts/Lobby/LobbyAsyncRequests.cs

10
Assets/Scripts/Game/GameManager.cs


}
else if (type == MessageType.QuickJoin)
{
LobbyAsyncRequests.Instance.QuickJoinLobbyAsync(m_localUser, m_lobbyColorFilter, (r) =>
{ lobby.ToLocalLobby.Convert(r, m_localLobby);
OnJoinedLobby();
},
OnFailedJoin);
LobbyAsyncRequests.Instance.QuickJoinLobbyAsync(m_localUser, m_lobbyColorFilter, (r) =>
{ lobby.ToLocalLobby.Convert(r, m_localLobby);
OnJoinedLobby();
},
OnFailedJoin);
}
}

9
Assets/Scripts/Lobby/LobbyAsyncRequests.cs


}
}
/// <summary>
/// Will Attempt to join the first Lobby among the available lobbies that match the filter.(limitToColor)
/// </summary>
m_rateLimitQuery.EnqueuePendingOperation(() => { QuickJoinLobbyAsync(localUser, limitToColor, onSuccess, onFailure); });
return;
}

}
}
public override void CopyObserved(RateLimitCooldown oldObserved)
{
/* This behavior isn't needed; we're just here for the OnChanged event management. */
}
public override void CopyObserved(RateLimitCooldown oldObserved){/* This behavior isn't needed; we're just here for the OnChanged event management. */}
}
}
}
正在加载...
取消
保存