projectEli/Assets/NeoFPS/Core/MotionGraphs/Behaviours/MotionGraphBehaviourTargetAttribute.cs

27 lines
592 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
using System;
namespace NeoFPS.CharacterMotion
{
[AttributeUsage(AttributeTargets.Class)]
public class MotionGraphBehaviourTargetAttribute : Attribute
{
#if UNITY_EDITOR
public ValidConnectables validConnectable { get; private set; }
public MotionGraphBehaviourTargetAttribute(ValidConnectables validFor)
{
validConnectable = validFor;
}
#else
public MotionGraphBehaviourTargetAttribute(ValidConnectables validFor) {}
#endif
}
public enum ValidConnectables
{
Both,
State,
Graph
}
}