Peer.cs 785 B

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