Peer.cs 766 B

12345678910111213141516171819202122232425262728293031
  1. using rtc;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using XRTool.Util;
  6. namespace ShadowStudio.Model
  7. {
  8. public class Peer
  9. {
  10. private string peerId;
  11. private string nickName;
  12. private bool isOther;
  13. private CustomPeer customPeer;
  14. public string PeerId { get => peerId; set => peerId = value; }
  15. public string NickName { get => nickName; set => nickName = value; }
  16. public bool IsOther { get => isOther; set => isOther = value; }
  17. public CustomPeer CustomPeer { get => customPeer; set => customPeer = value; }
  18. public bool IsSlef
  19. {
  20. get
  21. {
  22. return UserInfo.Account == PeerId;
  23. }
  24. }
  25. }
  26. }