public ClientDataServer(ClientTransform clientTransform, string name, int clientId, int lastPacketCounter, string clientIp) { this.clientTransform = clientTransform; this.name = name; this.clientId = clientId; this.lastPacketCounter = lastPacketCounter; this.clientIp = clientIp; }
public void SetClientTransform(ClientTransform transformState) { transform.SetPositionAndRotation(transformState.Pos, transformState.Rot); Body.transform.SetPositionAndRotation(transformState.Pos, transformState.Rot); }
public PlayerDataPacket(ClientTransform clientTransform, int clientId, int packetCounter) { this.clientTransform = clientTransform; this.clientId = clientId; this.packetCounter = packetCounter; }