Skip to content

Commit f954d19

Browse files
committed
fix unity defines.
1 parent a19245a commit f954d19

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

LiteNetLib/NetSocket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal sealed class NetSocket
2222

2323
static NetSocket()
2424
{
25-
#if UNITY
25+
#if UNITY_4 || UNITY_5 || UNITY_5_3_OR_NEWER
2626
IPv6Support = Socket.SupportsIPv6;
2727
#else
2828
IPv6Support = Socket.OSSupportsIPv6;

LiteNetLib/NetUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private static void DebugWriteLogic(ConsoleColor color, string str, params objec
200200

201201
if (NetDebug.Logger == null)
202202
{
203-
#if UNITY
203+
#if UNITY_4 || UNITY_5 || UNITY_5_3_OR_NEWER
204204
UnityEngine.Debug.Log(string.Format(str, args));
205205
#else
206206
Console.ForegroundColor = color;

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Minimal .NET version - 3.5
4747

4848
## Unity3d notes!!!
4949
* Always use library sources insted of precompiled DLL files.
50-
* Add to define symbols UNITY.
5150

5251
## Usage samples
5352

0 commit comments

Comments
 (0)