|
@@ -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);
|
|
|
+ }
|
|
|
+
|
|
|
}
|