Browse Source

服务器时间显示

guodong 1 year ago
parent
commit
736e53e6e3
1 changed files with 2 additions and 5 deletions
  1. 2 5
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

+ 2 - 5
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -220,7 +220,7 @@ namespace GFGGame
             //StorageSProxy.ReqSetClientValue(1012, 4).Coroutine();
 
             // 临时设置内网显示时间
-            _ui.m_serverTime.visible = true;
+            _ui.m_serverTime.visible = false;
             Timers.inst.AddUpdate(ServerTimeUpdate);
         }
 
@@ -1209,10 +1209,7 @@ namespace GFGGame
             {
                 dateTime = unixStartTime.AddMilliseconds(TimeHelper.ServerNow());
                 _ui.m_serverTime.text = dateTime.ToString();
-                if (LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL)
-                {
-                    _ui.m_serverTime.visible = true;
-                }
+                _ui.m_serverTime.visible = true;
             }
             else
             {