|
@@ -9,6 +9,7 @@ using ShadowStudio.Model;
|
|
|
using ShadowStudio.UI;
|
|
|
using UnityEngine;
|
|
|
using UnityEngine.SceneManagement;
|
|
|
+using UnityEngine.UI;
|
|
|
using XRTool.Util;
|
|
|
|
|
|
public class ShowViewMgr : UnitySingleton<ShowViewMgr>
|
|
@@ -95,7 +96,15 @@ public class ShowViewMgr : UnitySingleton<ShowViewMgr>
|
|
|
ArtInfoMgr.Instance.ListenUser();
|
|
|
roomId = CommonMethod.roomConfig.Id;
|
|
|
|
|
|
- TimerMgr.Instance.CreateTimer(Init, 0.5f);
|
|
|
+ TimerMgr.Instance.CreateTimer(Init, 0.5f);
|
|
|
+
|
|
|
+ if (CommonMethod.roomConfig.Is_created == "0")
|
|
|
+ {
|
|
|
+ GameObject.Find("CreateSenceBtn").GetComponent<Button>().enabled = false;
|
|
|
+ Debug.LogError("非房主进入房间");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ Debug.LogError("房主进入房间");
|
|
|
}
|
|
|
|
|
|
private void CreateSuccess(ArtContainer artContainer)
|