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"); }
public async Task OnGameInitialized() { var anyZoneConnectionEndpointAsync = await ZoneDataServiceClient.GetAnyZoneConnectionEndpointAsync(); ZoneDataRepository.UpdateZoneId(anyZoneConnectionEndpointAsync.Result.ZoneId); }