mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-12 22:44:35 +01:00
18 lines
345 B
C#
18 lines
345 B
C#
using UnityEngine;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class StateSetInteger : StateMachineBehaviour
|
|
{
|
|
[Header("Set the value of an integer parameter.")]
|
|
public string Name;
|
|
|
|
public int Value;
|
|
|
|
public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
{
|
|
animator.SetInteger(Name, Value);
|
|
}
|
|
}
|
|
}
|