1234567891011121314151617181920212223242526272829303132 |
- using UnityEngine;
- //客户端数据
- public class PlayerData
- {
- public string ClientIP;
- //临时的连接信息
- public bool IsConnected;
- public ulong ClientId;
-
- //todo,账号信息
- public string PlayerName;
- //是否视频流
- public bool IsVideoClient;
- public GameObject Anchor;
- public PlayerData(ulong clientID, ConnectionPayload connectionData, bool isConnected = false)
- {
- ClientIP = connectionData.ip;
- ClientId = clientID;
- IsConnected = isConnected;
- PlayerName = connectionData.playerName;
- IsVideoClient = connectionData.isVideo;
- }
- public void Reinitialize()
- {
- }
- }
|