Beispiel #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);
     }
 }
Beispiel #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();
     }
 }
Beispiel #3
0
 private bool onSceneLayoutLoaded(SceneTransitionEvents.LayoutGameObjectsLoaded evt)
 {
     eventChannel.RemoveListener <SceneTransitionEvents.LayoutGameObjectsLoaded>(onSceneLayoutLoaded);
     stateController.HideLoadingModalPopup();
     return(false);
 }