// Jimmy Vegas Unity Tutorials // This script iwill make your NPC cheer using System.Collections; using System.Collections.Generic; using UnityEngine; public class NPCTrigger : MonoBehaviour { public GameObject theNPC; void OnTriggerEnter(Collider other) { theNPC.GetComponent().Play("Cheer"); } void OnTriggerExit(Collider other) { theNPC.GetComponent().Play("Idle"); } }