diff --git a/RequireInterfaceAttribute.cs b/RequireInterfaceAttribute.cs new file mode 100644 index 0000000..ba3c599 --- /dev/null +++ b/RequireInterfaceAttribute.cs @@ -0,0 +1,17 @@ +using UnityEngine; +/// +/// Attribute that require implementation of the provided interface. +/// +public class RequireInterfaceAttribute : PropertyAttribute +{ + // Interface type. + public System.Type requiredType { get; private set; } + /// + /// Requiring implementation of the interface. + /// + /// Interface type. + public RequireInterfaceAttribute(System.Type type) + { + this.requiredType = type; + } +} \ No newline at end of file diff --git a/tmp.txt b/tmp.txt deleted file mode 100644 index 8b13789..0000000 --- a/tmp.txt +++ /dev/null @@ -1 +0,0 @@ -