RoomInfo.cs 707 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using SC.XR.Unity;
  2. using UnityEngine;
  3. using static WindowsManager;
  4. public class RoomInfo : SingletonMono<RoomInfo>
  5. {
  6. public GameObject chatShowBT;
  7. public ChatTextManager ctManager;
  8. void initShow()
  9. {
  10. //ctManager.DeletText();
  11. //ctManager.joinRoom();
  12. showChat();
  13. }
  14. public void showChat()
  15. {
  16. chatShowBT.SetActive(false);
  17. ctManager.gameObject.SetActive(true);
  18. }
  19. public void closeChat()
  20. {
  21. chatShowBT.SetActive(true);
  22. ctManager.gameObject.SetActive(false);
  23. }
  24. public void ResetChatText()
  25. {
  26. if (!ctManager.gameObject.activeSelf)
  27. {
  28. showChat();
  29. }
  30. }
  31. }