private void Awake()
 {
     client = new Client();
     client.Uninitialize();
     client.Initialize();
     DontDestroyOnLoad(this);
 }
Example #2
0
 public AuthenticateVoiceSessionEventListener(IVoiceNetworkInitializedEventSubscribable subscriptionService,
                                              [NotNull] ILog logger,
                                              [NotNull] VivoxUnity.Client voiceClient,
                                              [NotNull] ILocalPlayerDetails playerDetails,
                                              [NotNull] IVivoxAuthorizationService vivoxAutheAuthorizationService)
     : base(subscriptionService)
 {
     Logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     VoiceClient   = voiceClient ?? throw new ArgumentNullException(nameof(voiceClient));
     PlayerDetails = playerDetails ?? throw new ArgumentNullException(nameof(playerDetails));
     VivoxAutheAuthorizationService = vivoxAutheAuthorizationService ?? throw new ArgumentNullException(nameof(vivoxAutheAuthorizationService));
 }
Example #3
0
 public InitializeVivoxOnStart([NotNull] VivoxUnity.Client voiceClient)
 {
     VoiceClient = voiceClient ?? throw new ArgumentNullException(nameof(voiceClient));
 }