浏览代码

Bug197 公开交互可以创建场景

蓝色星空 1 年之前
父节点
当前提交
06229b8b93
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Assets/Studio/_4ShowScene/_ShowSceneCommonScripts/ShowViewMgr.cs

+ 5 - 1
Assets/Studio/_4ShowScene/_ShowSceneCommonScripts/ShowViewMgr.cs

@@ -100,8 +100,12 @@ public class ShowViewMgr : UnitySingleton<ShowViewMgr>
 
         if (CommonMethod.roomConfig.Is_created == "0")
         {
-            GameObject.Find("CreateSenceBtn").GetComponent<Button>().enabled = false;
             Debug.LogError("非房主进入房间");
+            if (CommonMethod.roomConfig.Room_type == "1")
+            {
+                Debug.Log("公开浏览");
+                GameObject.Find("CreateSenceBtn").GetComponent<Button>().enabled = false;
+            }
         }
         else
             Debug.LogError("房主进入房间");