Reformat files

This commit is contained in:
Santiago Lo Coco 2024-11-03 22:52:08 +01:00
parent 1043b2c541
commit a8be6c84d1
2 changed files with 4 additions and 4 deletions

View File

@ -38,13 +38,13 @@ public class ConfigureNavBar : MonoBehaviour
if (boxCollider1 != null)
{
boxCollider1.size = new Vector3(boxCollider1.size.x, isVisible ? 400 : 370, boxCollider1.size.z);
boxCollider1.center = new Vector3(0, isVisible ? 0: -16, 0);
boxCollider1.center = new Vector3(0, isVisible ? 0 : -16, 0);
}
if (boxCollider2 != null)
{
boxCollider2.size = new Vector3(boxCollider2.size.x, isVisible ? 400 : 370, boxCollider2.size.z);
boxCollider2.center = new Vector3(0, isVisible ? 0: -16, 0);
boxCollider2.center = new Vector3(0, isVisible ? 0 : -16, 0);
}
}
}

View File

@ -104,7 +104,7 @@ public class ServiceDiscovery : MonoBehaviour
{
byte[] query = CreateMdnsQuery(serviceName);
Debug.Log($"Sending mDNS query for {serviceName}");
udpClient.Send(query, query.Length, new IPEndPoint(IPAddress.Parse(multicastAddress), multicastPort));
}
@ -197,7 +197,7 @@ public class ServiceDiscovery : MonoBehaviour
ushort questions = (ushort)IPAddress.NetworkToHostOrder(BitConverter.ToInt16(data, 4));
ushort answerRRs = (ushort)IPAddress.NetworkToHostOrder(BitConverter.ToInt16(data, 6));
ushort additionalRRs = (ushort)IPAddress.NetworkToHostOrder(BitConverter.ToInt16(data, 10));
for (int i = 0; i < questions; i++)
{
offset = SkipName(data, offset);