Exemplo n.º 1
0
 private bool onCloseManageIglooPopup(IglooUIEvents.CloseManageIglooPopup evt)
 {
     stateController.ShowLoadingModalPopup();
     if (evt.SceneLayoutData != null)
     {
         onUpdateIglooDataFromCloseButton(success: true, evt.SceneLayoutData);
     }
     else
     {
         stateController.DataManager.UpdateIglooData(onUpdateIglooDataFromCloseButton);
     }
     return(false);
 }
 private void onIglooConfirmUnfinishedBusinessPromptButtonClicked(DPrompt.ButtonFlags flags)
 {
     if (flags == DPrompt.ButtonFlags.NO)
     {
         stateController.ShowLoadingModalPopup();
         stateController.DataManager.LayoutManager.RemoveActiveSceneLayout();
         eventChannel.AddListener <SceneTransitionEvents.LayoutGameObjectsLoaded>(onSceneLayoutLoaded);
         stateController.DataManager.LayoutManager.AddNewSceneLayoutData(publishedLayout);
     }
     stateController.DataManager.StartSync();
 }