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();
        }
    }

}