Esempio 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");
        }
Esempio n. 2
0
        public async Task OnGameInitialized()
        {
            var anyZoneConnectionEndpointAsync = await ZoneDataServiceClient.GetAnyZoneConnectionEndpointAsync();

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