soundvision/UnityProject/Assets/Scenes/Examples/MIDI/script/OrangeCube.cs

18 lines
360 B
C#
Raw Normal View History

2019-11-01 10:41:06 +00:00
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);
}
2019-11-01 11:06:54 +00:00
2019-11-01 10:41:06 +00:00
}
}