23 lines
694 B
C#
23 lines
694 B
C#
using System;
|
|
using UnityEngine;
|
|
using AnimatorControllerParameterType = UnityEngine.AnimatorControllerParameterType;
|
|
|
|
namespace KitsuneCafe.Sys.Attributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field)]
|
|
public class AnimatorParamAttribute : PropertyAttribute
|
|
{
|
|
public readonly string AnimatorProperty;
|
|
public readonly AnimatorControllerParameterType? Type;
|
|
|
|
public AnimatorParamAttribute(string animatorProperty)
|
|
{
|
|
AnimatorProperty = animatorProperty;
|
|
}
|
|
|
|
public AnimatorParamAttribute(string animatorProperty, AnimatorControllerParameterType type) : this(animatorProperty)
|
|
{
|
|
Type = type;
|
|
}
|
|
}
|
|
}
|