1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-17 23:56:30 +09:00

Fixed compile error.

Removed misplaced static keyword.
This commit is contained in:
Frank Versnel
2016-02-29 16:42:31 +01:00
parent 6594a4a41f
commit 32ed1a91e9

View File

@@ -1,4 +1,4 @@
#if UNITY #if UNITY
using UnityEngine; using UnityEngine;
namespace Lidgren.Network namespace Lidgren.Network
@@ -11,9 +11,11 @@ namespace Lidgren.Network
Write(vector.y); 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) public void Write(Vector3 vector)