Files
Fruitomation/Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs
2026-03-30 10:32:44 +01:00

25 lines
570 B
C#

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;
}
}
}