Added Pacore
This commit is contained in:
24
Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs
Normal file
24
Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class MonoScriptAttribute : PropertyAttribute
|
||||
{
|
||||
public Type InheritedFrom { get; }
|
||||
public Type MonoType { get; }
|
||||
|
||||
public MonoScriptAttribute(Type inherited, Type type = null)
|
||||
{
|
||||
InheritedFrom = inherited;
|
||||
MonoType = type;
|
||||
}
|
||||
|
||||
public MonoScriptAttribute(Type type = null)
|
||||
{
|
||||
InheritedFrom = null;
|
||||
MonoType = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user