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