Project_WL/Assets/Script/UI/Roullette/RoulletteArrow.cs

16 lines
366 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RoulletteArrow : MonoBehaviour
{
public EventRoulletteUI m_EventRoulletteUI;
public Animation m_Anim;
private void OnTriggerEnter(Collider other)
{
m_EventRoulletteUI.Set_SelectItem(other.name);
m_Anim.Stop();
m_Anim.Play();
}
}