Peer.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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 string avatar;
  13. private CustomPeer customPeer;
  14. private AgoraCustomPeer aCustomPeer;
  15. public string PeerId { get => peerId; set => peerId = value; }
  16. public string NickName { get => nickName; set => nickName = value; }
  17. public bool IsOther { get => isOther; set => isOther = value; }
  18. public string Avatar { get => avatar; set => avatar = value; }
  19. public CustomPeer CustomPeer { get => customPeer; set => customPeer = value; }
  20. public AgoraCustomPeer AgoraCustomPeer { get=> aCustomPeer; set => aCustomPeer = value; }
  21. public bool IsSlef
  22. {
  23. get
  24. {
  25. return CommonMethod.MyPeer.PeerId == PeerId;
  26. }
  27. }
  28. }
  29. }