浏览代码

默认隐藏单位血条

大爷 1 年之前
父节点
当前提交
7784ada00a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Unity/Assets/Scripts/Codes/HotfixView/Client/Scene/GameObjectPool.cs

+ 1 - 0
Unity/Assets/Scripts/Codes/HotfixView/Client/Scene/GameObjectPool.cs

@@ -320,6 +320,7 @@ namespace ET.Client
                 //加入所有headbar的parent view
                 root = await UIHelper.Create("HeadBar", "HeadBarRoot", 0);
                 GlobalViewComponent.Instance.HeadbarView = root;
+                root.visible = false;
             }
 
             var view = await UIHelper.Create("HeadBar", "normalbar", -1, root);