private void Awake()
 {
     client = new Client();
     client.Uninitialize();
     client.Initialize();
     DontDestroyOnLoad(this);
 }
Esempio n. 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));
 }
Esempio n. 3
0
 public InitializeVivoxOnStart([NotNull] VivoxUnity.Client voiceClient)
 {
     VoiceClient = voiceClient ?? throw new ArgumentNullException(nameof(voiceClient));
 }