soundvision/UnityProject/Assets/Scenes/Examples/MIDI/script/OrangeCube.cs
2019-11-01 11:41:06 +01:00

15 lines
342 B
C#

using UnityEngine;
namespace cylvester
{
public class OrangeCube : MonoBehaviour
{
[SerializeField] private Animator anim;
private static readonly int AnimTrigger = Animator.StringToHash("AnimTrigger");
public void OnTriggerReceived()
{
anim.SetTrigger(AnimTrigger);
}
}
}