private void onIglooDataUpdated(bool success, SceneLayoutData sceneLayoutData) { if (success) { newActiveIglooSceneLayoutData = sceneLayoutData; initialActiveIglooId = sceneLayoutData.LayoutId; if (iglooToDelete != null) { iglooService.DeleteIglooLayout(iglooToDelete.LayoutId); return; } stateController.HideLoadingModalPopup(); stateController.IglooSaveStatusNotification(IglooUIStateController.IglooSaveStatus.GeneralError, showAfterSceneLoad: false); } else { stateController.HideLoadingModalPopup(); stateController.IglooSaveStatusNotification(IglooUIStateController.IglooSaveStatus.GeneralError, showAfterSceneLoad: false); } }
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 onSceneLayoutLoaded(SceneTransitionEvents.LayoutGameObjectsLoaded evt) { eventChannel.RemoveListener <SceneTransitionEvents.LayoutGameObjectsLoaded>(onSceneLayoutLoaded); stateController.HideLoadingModalPopup(); return(false); }