Browse Source

远程协助初始化

胡佳骏 1 year ago
parent
commit
8a13007081
1 changed files with 12 additions and 2 deletions
  1. 12 2
      Assets/Scripts/RTC/LiveRTCRoomMain.cs

+ 12 - 2
Assets/Scripts/RTC/LiveRTCRoomMain.cs

@@ -47,6 +47,8 @@ public class LiveRTCRoomMain : MonoSingleton<LiveRTCRoomMain>,IController
     }
     private void OnInit()
     {
+
+
         videoOpenBtn.onClick.AddListener(()=> { SetVideo(true); });
         videoCloseBtn.onClick.AddListener(() => { SetVideo(false); });
 
@@ -145,6 +147,14 @@ public class LiveRTCRoomMain : MonoSingleton<LiveRTCRoomMain>,IController
     }
 
 
-  
-    
+    private void OnEnable()
+    {
+
+        audioCloseBtn.gameObject.SetActive(true);
+        audioOpenBtn.gameObject.SetActive(false);
+
+        videoCloseBtn.gameObject.SetActive(true);
+        videoOpenBtn.gameObject.SetActive(false);
+    }
+
 }