RoomInfo.cs 737 B

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