Esempio n. 1
0
 private bool onManageIglooCreatePressed(IglooUIEvents.CreateIglooButtonPressed evt)
 {
     stateController.ShowLoadingModalPopup();
     if (evt.SceneLayoutData != null)
     {
         onUpdateIglooDataFromCreateButton(success: true, evt.SceneLayoutData);
     }
     else
     {
         stateController.DataManager.UpdateIglooData(onUpdateIglooDataFromCreateButton);
     }
     return(false);
 }
Esempio n. 2
0
 private bool onManageIglooCreatePressed(IglooUIEvents.CreateIglooButtonPressed evt)
 {
     if (!stateController.IsFirstIglooLoad)
     {
         stateController.ShowLoadingModalPopup();
         if (evt.SceneLayoutData != null)
         {
             onUpdateIglooDataFromCreateButton(success: true, evt.SceneLayoutData);
         }
         else
         {
             stateController.DataManager.UpdateIglooData(onUpdateIglooDataFromCreateButton);
         }
     }
     stateController.CloseManageIglooPopup();
     if (dataEntityCollection.TryGetComponent <SavedIgloosMetaData>(dataEntityCollection.LocalPlayerHandle, out var component))
     {
         Service.Get <ICPSwrveService>().Action("igloo", "create", component.SavedIgloos.Count.ToString());
     }
     return(false);
 }