public bool Shoot() { UDPPacket packet = new UDPPacket(); packet.type = 'S'; return(_matchUdp.SendData(packet.Encode())); }
public bool UDPHandshake() { UDPPacket packet = new UDPPacket(); packet.type = 'H'; packet.str = playerInfo.PlayerData.ID; return(_matchUdp.SendData(packet.Encode())); }
public bool SendLocation() { UDPPacket packet = new UDPPacket(); packet.type = 'U'; packet.fList.Add(movementData.speed); packet.fList.Add(movementData.direction.x); packet.fList.Add(movementData.direction.y); return(_matchUdp.SendData(packet.Encode())); }