Reformat files
This commit is contained in:
parent
1043b2c541
commit
a8be6c84d1
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue