Exemplo n.º 1
0
        public async Task OnGameInitialized()
        {
            var anyZoneConnectionEndpointAsync = await ZoneDataServiceClient.GetAnyZoneConnectionEndpointAsync();

            if (anyZoneConnectionEndpointAsync.isSuccessful)
            {
                ZoneDataRepository.UpdateZoneId(anyZoneConnectionEndpointAsync.Result.ZoneId);
            }
            else
            {
                Console.WriteLine($"Failed to query Zone Endpoint. Error: {anyZoneConnectionEndpointAsync.ResultCode}");
            }

            Console.WriteLine($"ZoneInit Finished");
        }
Exemplo n.º 2
0
        public async Task OnGameInitialized()
        {
            var anyZoneConnectionEndpointAsync = await ZoneDataServiceClient.GetAnyZoneConnectionEndpointAsync();

            ZoneDataRepository.UpdateZoneId(anyZoneConnectionEndpointAsync.Result.ZoneId);
        }