private void onUpdateIglooDataFromCloseButton(bool success, SceneLayoutData sceneLayoutData) { stateController.HideLoadingModalPopup(); if (!success) { stateController.IglooSaveStatusNotification(IglooUIStateController.IglooSaveStatus.GeneralError, showAfterSceneLoad: true); } stateController.TransitionFromCreateToPlay(checkAndCacheSceneLayoutData(sceneLayoutData)); }
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); }