Ver Fonte

修改bug

lzx há 3 semanas atrás
pai
commit
ca336975e8

+ 9 - 8
Assets/Scripts/GameUI/UI/LevelChoosePanel/PlacesInfoWidget.cs

@@ -156,7 +156,7 @@ namespace Fort23.Mono
             currentSmallPlacesData = PlayerManager.Instance.GetSmallPlacesData(smallPlacesConfig.ID);
             currentSmallPlacesData = PlayerManager.Instance.GetSmallPlacesData(smallPlacesConfig.ID);
 
 
             Btn_Qianwang.gameObject.SetActive(PlayerManager.Instance.CurrentsmallPlaces.id != smallPlacesConfig.ID);
             Btn_Qianwang.gameObject.SetActive(PlayerManager.Instance.CurrentsmallPlaces.id != smallPlacesConfig.ID);
-            Icon_DIdian.gameObject.SetActive(PlayerManager.Instance.CurrentsmallPlaces.id != smallPlacesConfig.ID);
+            Icon_DIdian.gameObject.SetActive(PlayerManager.Instance.CurrentsmallPlaces.id == smallPlacesConfig.ID);
 
 
             Icon_Places.icon_name = smallPlacesConfig.placeIcon;
             Icon_Places.icon_name = smallPlacesConfig.placeIcon;
 
 
@@ -186,7 +186,13 @@ namespace Fort23.Mono
         {
         {
             SmallPlacesConfig smallPlacesConfig = ConfigComponent.Instance.Get<SmallPlacesConfig>(id);
             SmallPlacesConfig smallPlacesConfig = ConfigComponent.Instance.Get<SmallPlacesConfig>(id);
 
 
-
+            AccountFileInfo.SmallPlacesData currentSmallPlacesData =
+                PlayerManager.Instance.GetSmallPlacesData(smallPlacesConfig.ID-1);
+            if (currentSmallPlacesData == null)
+            {
+                return LanguageManager.Instance.Text(10377);
+            }
+            
             AccountFileInfo.SmallPlacesData lastSmallPlacesData =
             AccountFileInfo.SmallPlacesData lastSmallPlacesData =
                 PlayerManager.Instance.GetSmallPlacesData(smallPlacesConfig.ID - 1);
                 PlayerManager.Instance.GetSmallPlacesData(smallPlacesConfig.ID - 1);
             SmallPlacesConfig lastSmallPlacesConfig =
             SmallPlacesConfig lastSmallPlacesConfig =
@@ -211,12 +217,7 @@ namespace Fort23.Mono
                 }
                 }
             }
             }
 
 
-            AccountFileInfo.SmallPlacesData currentSmallPlacesData =
-                PlayerManager.Instance.GetSmallPlacesData(smallPlacesConfig.ID);
-            if (currentSmallPlacesData == null)
-            {
-                return LanguageManager.Instance.Text(10377);
-            }
+         
 
 
             return "";
             return "";
         }
         }