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

Added some UNITY defines; fix by aeronaut84. Untested.

This commit is contained in:
lidgren
2014-08-02 18:01:30 +00:00
parent 57eba64f6f
commit 4bfb24da96
4 changed files with 13 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ namespace Lidgren.Network
static NetAESEncryption()
{
#if !IOS && !__ANDROID__
#if !IOS && !__ANDROID__ && !UNITY_4_5
AesCryptoServiceProvider aes = new AesCryptoServiceProvider();
List<int> temp = new List<int>();
foreach (KeySizes keysize in aes.LegalKeySizes)
@@ -103,7 +103,7 @@ namespace Lidgren.Network
/// </summary>
public bool Encrypt(NetOutgoingMessage msg)
{
#if !IOS && !__ANDROID__
#if !IOS && !__ANDROID__ && !UNITY_4_5
try
{
// nested usings are fun!
@@ -138,7 +138,7 @@ namespace Lidgren.Network
/// </summary>
public bool Decrypt(NetIncomingMessage msg)
{
#if !IOS && !__ANDROID__
#if !IOS && !__ANDROID__ && !UNITY_4_5
try
{
// nested usings are fun!