public void GenerateGlobeButtonHandler() { var globe = _globeInitializer.CreateGlobeAsync("intro").Result; _nationalUnityEventService.Globe = globe; ShowPersonInfoInDescriptionTextbox(_player.MainPerson, DescriptionText, _uiSettingService); NoGlobeParentObject.SetActive(false); GlobeDescriptionParentObject.SetActive(true); }
private async Task RegenerateGlobeAsync() { ClearPreviousState(); var globe = await _globeInitializer.CreateGlobeAsync(START_LOCATION_SID).ConfigureAwait(false); if (globe is null) { throw new InvalidOperationException(); } _globeLoop.Start(); #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed _commandLoop.StartAsync(CancellationToken.None); #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed _commandLoop.CommandProcessed += CommandLoop_CommandProcessed; }