15 lines
342 B
C#
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);
|
|
}
|
|
}
|
|
}
|