浏览代码

fixed some whitespace and line endings.

/main/staging/december_UI_bugs
当前提交
55970d57
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. 10
      Assets/Scripts/Vivox/VivoxUserHandler.cs

10
Assets/Scripts/Vivox/VivoxUserHandler.cs


public void OnChannelJoined(IChannelSession channelSession) // Called after a connection is established, which begins once a lobby is joined.
{
//Check if we are muted or not
m_channelSession = channelSession;
m_channelSession.Participants.AfterKeyAdded += OnParticipantAdded;
m_channelSession.Participants.BeforeKeyRemoved += BeforeParticipantRemoved;

var source = (VivoxUnity.IReadOnlyDictionary<string, IParticipant>)sender;
var participant = source[keyEventArg.Key];
var username = participant.Account.DisplayName;
if(!participant.IsMutedForAll)
m_lobbyUserVolumeUI.EnableVoice(false);//Should check if user is muted or not.
else

m_lobbyUserVolumeUI.DisableVoice(false);
}
}
private void BeforeParticipantRemoved(object sender, KeyEventArg<string> keyEventArg)
{
var source = (VivoxUnity.IReadOnlyDictionary<string, IParticipant>)sender;

正在加载...
取消
保存