Files
BH3/Assets/Scripts/Assembly-CSharp/MoleMole/AnimatorParameterEntry.cs
2025-08-13 09:26:42 +08:00

36 lines
625 B
C#

using UnityEngine;
namespace MoleMole
{
public struct AnimatorParameterEntry
{
public int stateHash;
public AnimatorControllerParameterType type;
public int intValue;
public float floatValue;
public bool boolValue;
public override string ToString()
{
object arg = null;
if (type == AnimatorControllerParameterType.Bool)
{
arg = boolValue;
}
else if (type == AnimatorControllerParameterType.Int)
{
arg = intValue;
}
else if (type == AnimatorControllerParameterType.Float)
{
arg = floatValue;
}
return string.Format("param {0}, {1}", stateHash, arg);
}
}
}