25 lines
297 B
C#
25 lines
297 B
C#
using UnityEngine;
|
|
|
|
namespace BitStrap
|
|
{
|
|
public abstract class AnimationParameter
|
|
{
|
|
public string name;
|
|
|
|
[SerializeField]
|
|
private int index = -1;
|
|
|
|
public int Index
|
|
{
|
|
get
|
|
{
|
|
if (index == -1)
|
|
{
|
|
index = Animator.StringToHash(name);
|
|
}
|
|
return index;
|
|
}
|
|
}
|
|
}
|
|
}
|