16 lines
320 B
C#
16 lines
320 B
C#
using UnityEngine;
|
|
|
|
namespace HeathenEngineering.UX.Samples
|
|
{
|
|
public class ToggleSetAnimatorBoolean : MonoBehaviour
|
|
{
|
|
public Animator animator;
|
|
public string booleanName;
|
|
|
|
public void SetBoolean(bool value)
|
|
{
|
|
animator.SetBool(booleanName, value);
|
|
}
|
|
}
|
|
}
|