void ClientIDStreamIDUpdated(RealtimeAvatarVoiceModel model) { if (isOwnedLocally) { return; } // Connect the new audio stream ConnectAudioStream(); }
void SetModel(RealtimeAvatarVoiceModel model) { if (_model != null) { _model.clientIDStreamIDUpdated -= ClientIDStreamIDUpdated; } DisconnectAudioStream(); _model = model; ConnectAudioStream(); if (_model != null) { _model.clientIDStreamIDUpdated += ClientIDStreamIDUpdated; } }