private void onUpdateIglooDataFromCloseButton(bool success, SceneLayoutData sceneLayoutData) { stateController.HideLoadingModalPopup(); if (success) { if (stateController.DataManager.LayoutManager.IsLayoutActive(sceneLayoutData.LayoutId)) { stateController.CloseManageIglooPopup(); } else { stateController.ReloadPlay(sceneLayoutData); } } else { stateController.IglooSaveStatusNotification(IglooUIStateController.IglooSaveStatus.GeneralError, showAfterSceneLoad: false); stateController.CloseManageIglooPopup(); } }
private bool onCloseManageIglooPopup(IglooUIEvents.CloseManageIglooPopup evt) { if (stateController.IsFirstIglooLoad) { stateController.CloseManageIglooPopup(); stateController.ExitIgloos(); } else { stateController.ShowLoadingModalPopup(); if (evt.SceneLayoutData != null) { onUpdateIglooDataFromCloseButton(success: true, evt.SceneLayoutData); } else { stateController.DataManager.UpdateIglooData(onUpdateIglooDataFromCloseButton); } } return(false); }