Пример #1
0
 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);
     }
 }
Пример #2
0
 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();
     }
 }
Пример #3
0
 private bool onSceneLayoutLoaded(SceneTransitionEvents.LayoutGameObjectsLoaded evt)
 {
     eventChannel.RemoveListener <SceneTransitionEvents.LayoutGameObjectsLoaded>(onSceneLayoutLoaded);
     stateController.HideLoadingModalPopup();
     return(false);
 }