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

17 lines
320 B
C#
Raw Normal View History

2019-10-31 17:37:03 +00:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
2019-10-31 19:15:27 +00:00
namespace cylvester
2019-10-31 17:37:03 +00:00
{
2019-10-31 19:15:27 +00:00
public class OrangeCubeScript : MonoBehaviour
2019-10-31 17:37:03 +00:00
{
2019-10-31 19:15:27 +00:00
[SerializeField] private Animator anim;
2019-10-31 17:37:03 +00:00
2019-10-31 19:15:27 +00:00
public void Go()
2019-10-31 17:37:03 +00:00
{
2019-10-31 19:15:27 +00:00
anim.SetTrigger("AnimTrigger");
2019-10-31 17:37:03 +00:00
}
}
}