Przeglądaj źródła

添加gm远程开关

guodong 3 lat temu
rodzic
commit
538a5b484d

+ 3 - 0
GameClient/Assets/Game/HotUpdate/GameConfig.cs

@@ -10,6 +10,7 @@ namespace GFGGame
 
         public static string LoginAddress;
         public static string PlatformName;
+        public static int showGM;
 
         public static void InitData(string json)
         {
@@ -18,12 +19,14 @@ namespace GFGGame
             LoginAddress = result.loginApiUrl;
             //LoginAddress = "10.108.64.127:10005";
             PlatformName = result.platformName;
+            showGM = result.showGM;
         }
 
         private struct Result
         {
             public string loginApiUrl;
             public string platformName;
+            public int showGM;
         }
     }
 }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainUI/RoleInfoView.cs

@@ -97,7 +97,7 @@ namespace GFGGame
 
         private void OnClickBtnHelp()
         {
-            if (LauncherConfig.netType == EnumNetType.LOCAL)
+            if (GameConfig.showGM >= 1)
             {
                 ViewManager.Show(ViewName.GM_PANEL_VIEW);
             }