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(); } } }