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