1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-19 08:36:34 +09:00

misc fixes

This commit is contained in:
Michael Lidgren
2015-09-27 10:51:53 +02:00
parent c42b885e1f
commit 1c1fc902f3
3 changed files with 3 additions and 5 deletions

View File

@@ -78,11 +78,7 @@ namespace Lidgren.Network
foreach (PropertyInfo fi in fields) foreach (PropertyInfo fi in fields)
{ {
#if UNITY_WEBPLAYER || UNITY_4_5
MethodInfo getMethod = fi.GetGetMethod(); MethodInfo getMethod = fi.GetGetMethod();
#else
MethodInfo getMethod = fi.GetMethod;
#endif
if (getMethod != null) if (getMethod != null)
{ {
object value = getMethod.Invoke(ob, null); object value = getMethod.Invoke(ob, null);

View File

@@ -12,7 +12,7 @@ namespace Lidgren.Network
/// <summary> /// <summary>
/// Represents a connection to a remote peer /// Represents a connection to a remote peer
/// </summary> /// </summary>
[DebuggerDisplay("RemoteUniqueIdentifier={RemoteUniqueIdentifier} RemoteEndPoint={remoteEndPoint}")] [DebuggerDisplay("RemoteUniqueIdentifier={RemoteUniqueIdentifier} RemoteEndPoint={m_remoteEndPoint}")]
public partial class NetConnection public partial class NetConnection
{ {
private const int m_infrequentEventsSkipFrames = 8; // number of heartbeats to skip checking for infrequent events (ping, timeout etc) private const int m_infrequentEventsSkipFrames = 8; // number of heartbeats to skip checking for infrequent events (ping, timeout etc)

View File

@@ -38,6 +38,8 @@ namespace Lidgren.Network
/// </summary> /// </summary>
public static partial class NetUtility public static partial class NetUtility
{ {
private static readonly bool IsMono = Type.GetType("Mono.Runtime") != null;
/// <summary> /// <summary>
/// Resolve endpoint callback /// Resolve endpoint callback
/// </summary> /// </summary>