Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }