Browse Source

Bug197 公开交互可以创建场景

蓝色星空 1 year ago
parent
commit
06229b8b93
1 changed files with 5 additions and 1 deletions
  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("房主进入房间");