Commit e5330179 authored by Mervill's avatar Mervill
Browse files

Disable CLS Compliance in Unity3D.

parent a31a3d5a
using System;
using System.Runtime.InteropServices;
#if UNITY_3D
namespace NLua {
/// <summary>
/// Disables CLS Compliance in Unity3D.
/// </summary>
[Serializable]
[AttributeUsage(AttributeTargets.All)]
[ComVisible(true)]
public class CLSCompliantAttribute : Attribute {
private bool _compliant;
public CLSCompliantAttribute(bool isCompliant) { _compliant = isCompliant; }
public bool IsCompliant { get { return _compliant; } }
}
}
#endif
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment