Files
PrinceOfGlory/Assets/Scripts/Scene_01/ShowSelfFontCtr.cs
kridoo 6e91a0c7f0 111
2025-09-15 17:32:08 +08:00

22 lines
525 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ShowSelfFontCtr : MonoBehaviour
{
public Animator animator;
public string annia_name;
public AudioSource audioSource;
// Start is called before the first frame update
private void OnTriggerEnter(Collider other)
{
if (other.gameObject.CompareTag("RightHand"))
{
animator.Play(annia_name);
if (audioSource != null)
audioSource.Play();
}
}
}