You've already forked lidgren-network-gen3
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:
@@ -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);
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user