public void SendPlayerTurn(int forward, bool stand, Vector3 pos) { ProtocolBytes protocol = new ProtocolBytes(); protocol.AddString("PlayerTurn"); protocol.AddString(playerid); protocol.AddInt(forward); protocol.AddBool(stand); protocol.AddFloat(pos.x); protocol.AddFloat(pos.y); protocol.AddFloat(pos.z); ProtocolBytes UDPprotocol = new ProtocolBytes(); UDPprotocol.AddInt(conn_id); UDPprotocol.AddString("U"); UDPprotocol.AddString(playerid); UDPprotocol.AddInt(forward); UDPprotocol.AddBool(stand); UDPprotocol.AddFloat(pos.x); UDPprotocol.AddFloat(pos.y); UDPprotocol.AddFloat(pos.z); UDPSend(UDPprotocol); Send(protocol); }