1234567891011121314151617181920212223242526272829303132333435363738 |
- using SC.XR.Unity;
- using UnityEngine;
- using static ScenesManager;
- public class RoomInfo : RemoteSingleton<RoomInfo>
- {
- public GameObject chatShowBT;
- public ChatTextManager ctManager;
- public override void initShow()
- {
- base.initShow();
- ctManager.DeletText();
- ctManager.joinRoom();
- showChat();
- }
- public void showChat()
- {
- chatShowBT.SetActive(false);
- ctManager.gameObject.SetActive(true);
- }
- public void closeChat()
- {
- chatShowBT.SetActive(true);
- // ctManager.gameObject.SetActive(false);
- }
-
- public void ResetChatText()
- {
- if (!ctManager.gameObject.activeSelf)
- {
- showChat();
- }
- }
- }
|