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
|
|
|
|
}
|
|
|
|
|
}
|