浏览代码

Quick minor tidy

/main/staging/vivox_polish
nathaniel.buck@unity3d.com 3 年前
当前提交
5d19a04f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Assets/Scripts/Vivox/VivoxSetup.cs

4
Assets/Scripts/Vivox/VivoxSetup.cs


m_loginSession = VivoxService.Instance.Client.GetLoginSession(account);
string token = m_loginSession.GetLoginToken();
m_loginSession.BeginLogin(m_loginSession.GetLoginToken(), SubscriptionMode.Accept, null, null, null, result =>
m_loginSession.BeginLogin(token, SubscriptionMode.Accept, null, null, null, result =>
{
try
{

m_channelSession = m_loginSession.GetChannelSession(channel);
string token = m_channelSession.GetConnectToken();
m_channelSession.BeginConnect(true, false, true, m_channelSession.GetConnectToken(), result =>
m_channelSession.BeginConnect(true, false, true, token, result =>
{
m_channelSession.EndConnect(result); // TODO: Error handling?
onComplete?.Invoke(true);

正在加载...
取消
保存