From 32ed1a91e9b0edc35b8bb8e0dec1d843411839a3 Mon Sep 17 00:00:00 2001 From: Frank Versnel Date: Mon, 29 Feb 2016 16:42:31 +0100 Subject: [PATCH] Fixed compile error. Removed misplaced static keyword. --- Lidgren.Network/Platform/PlatformUnityExtras.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Lidgren.Network/Platform/PlatformUnityExtras.cs b/Lidgren.Network/Platform/PlatformUnityExtras.cs index a1d93db..9dd3b2a 100644 --- a/Lidgren.Network/Platform/PlatformUnityExtras.cs +++ b/Lidgren.Network/Platform/PlatformUnityExtras.cs @@ -1,4 +1,4 @@ -#if UNITY +#if UNITY using UnityEngine; namespace Lidgren.Network @@ -11,9 +11,11 @@ namespace Lidgren.Network Write(vector.y); } - public static Vector2 ReadVector2() + public Vector2 ReadVector2() { - return new Vector2(ReadSingle(), ReadSingle()); + return new Vector2( + x: ReadSingle(), + y: ReadSingle()); } public void Write(Vector3 vector)