Prechádzať zdrojové kódy

修改主界面神识刷新

lzx 3 dní pred
rodič
commit
9e592e40c5

+ 1 - 1
Assets/Scripts/GameUI/UI/AppBarPanel/AppBarPanel.cs

@@ -264,7 +264,7 @@ namespace Fort23.Mono
         {
             currentOpenUIPanel = uiPanel;
 
-
+            DivineSensePointChange(null);
             UpdateUitoggleState();
         }
 

+ 2 - 0
Assets/Scripts/GameUI/UI/DivineSence/DivineSenceRestoredWidget.cs

@@ -60,6 +60,7 @@ namespace Fort23.Mono
                             {
                                 AccountFileInfo.Instance.playerData.divineSensePoint +=
                                     itemInfo.config.associateVlaue[0];
+                                EventManager.Instance.Dispatch(CustomEventType.DivineSensePointChange, null);
                                 PlayerManager.Instance.BagController.DeductItem(itemInfo.config.ID, 1);
                             }
                         }
@@ -81,6 +82,7 @@ namespace Fort23.Mono
                         AccountFileInfo.Instance.playerData.divineSensePoint +=
                             itemConfig.associateVlaue[0];
                         PlayerManager.Instance.BagController.DeductItem(itemConfig.ID, 1);
+                        EventManager.Instance.Dispatch(CustomEventType.DivineSensePointChange, null);
                         UIManager.Instance.GetComponent<DivineSenceRestoredPanel>().CreatWidget();
                     }
                     else